Jump to content

Recommended Posts

Hi Peoples,

I have installed listmanager but I cannot get it to work

First the install failed to write the table in mySQL

So I created it manually

Now I have an error which reports:-

Notice: Use of undefined constant a - assumed 'a' in D:\hshome\topshed\londontrolleybus.com\linkmanager\linkmanager.php on line 34

Notice: Undefined index: a in D:\hshome\topshed\londontrolleybus.com\linkmanager\linkmanager.php on line 34

 

 

I have of course put my details in for user, password etc.

and I have removed some styling for clarity,

 


<?php
/*
Linkmanager by Jakez.
Website: http://www.13scripts.com
Email: jakezz@gmail.com
*/
/*SETTINGS*/
$admin_password="admin";
$horizontal_categories=4;
$a=mysql_connect('localhost', 'mysql_user', 'mysql_password');
$b=mysql_select_db('mysql_db',$a);

$header="
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" 
  \"http://www.w3.org/TR/html4/loose.dtd\">
<head>
<title>Linkmanager</title>
</head>
<body bgcolor=#322112 style=\"color: white; font-family: arial; font-size: 10px;\">
<a href=http://www.13scripts.com>13Scripts  ©</a>
";
/*END SETTINGS*/

// NEXT LINE IS  34

if($_GET[a]=="login" AND $_POST[password]==$admin_password)
{
setcookie("admin", $admin_password, time()+2592000);
header("Location: $PHP_SELF");
}

if(!isset($_COOKIE['admin']) OR $_COOKIE['admin']!=$admin_password)
{

 

Any help would be most Helpful

 

Thanks  Topshed

Link to comment
https://forums.phpfreaks.com/topic/131067-please-help-with-listmanager/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.