Jump to content

Help! Why wont it work?


kellynovice

Recommended Posts

I have a php programme which I have followed all instalation instructions .... yet when I click onto the admin section of the programme it says wrong password.  I changed the password to my choice on config.php as instructed and uploaded the file.

I know that someone will probably need to see part of the code, but I don't know which part .... if you let me know I will be happy to cut and paste it for some "genius" to look and know exactly whats wrong!

I am a complete novice and have no idea what to look for.

Someone please help .... please

Kelly
Link to comment
https://forums.phpfreaks.com/topic/35700-help-why-wont-it-work/
Share on other sites

WOW That was quick.

I ahve loaded it all ok and it is working fine .... the only thing is when I try to log into the admin section is keeps telling me that I have entered the wrong password .... I can't be though, as I set the password.  I have tried everything.  I think there is a part in the script that is wrong, not set to log in once the password is entered??  Anyway I have no idea where that part would be in the script.

As you may have already noticed, I am not very good at this! 

But thank you for your suggestion.
Link to comment
https://forums.phpfreaks.com/topic/35700-help-why-wont-it-work/#findComment-169141
Share on other sites

is the password set in the database? if so did you just type it in i.e. password = phpfreaks, so you see phpfreaks next to the username? search the login page for md5 and see if it is trying to compare the password you type using  a md5 hash..... if that is the case update the table (in phpMyAdmin or Query Browser) with something like:

UPDATE users SET password = md5(phpfreaks) WHERE username = 'admin'

now the password will look like a big jumble of numbers and letters.....
Link to comment
https://forums.phpfreaks.com/topic/35700-help-why-wont-it-work/#findComment-169151
Share on other sites

hmmm ... I think you spoke spanish to me !  Sorry :-[

From what I can see the part thats not working properly is this bit below .... is there something in there that is not accepting the password?


<?php
ob_start();
include('../config.php');
include('header.php');
$ax=$_GET["ax"];

/////////////////////
// Table Installation
/////////////////////

if($HTTP_COOKIE_VARS["admin_log"]=="in")
{
echo "<p class=\"bodymd\">[ <a href=\"".$PHP_SELF."\">Link Admin Home</a> | <a href=\"".$PHP_SELF."?ax=addcat\">Add a Category</a> | <a href=\"".$PHP_SELF."?ax=add\">Add a Link</a> | <a href=\"".$PHP_SELF."?ax=logout\">Logout</a> | <a href=\"".$PHP_SELF."?ax=install\">Install Affiliate Directory</a> ]</p>";
if($ax=="install")
{

Link to comment
https://forums.phpfreaks.com/topic/35700-help-why-wont-it-work/#findComment-169157
Share on other sites

I think it is from the config.php file .... thats where I entered the website variables.

Or am I totally way off now?  I am really grateful for your help and I'm sorry I am such a blonde!

Everyone had to start somewhere (or so they say!  :) Perhaps I should just quit now!
Link to comment
https://forums.phpfreaks.com/topic/35700-help-why-wont-it-work/#findComment-169176
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.