Jump to content

Please Help with Listmanager


Topshed

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: [email protected]
*/
/*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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.