SunQuest
           Barter Zone
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsGeneralBarter Zone

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old July 6th, 2006, 02:00 AM
jad9321 jad9321 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 7 jad9321 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Problem With This Script. [URGENT ATTENTION!!!]

Ok,
I have an online radio station and I just downloaded a request line 3.2 script for it from http://googleit.pspsite.be/index.php. I installed the script, Chmodded the config.php file, I did everything it said to do. When I try to login it Says click here to refresh and enter the control panel. I click there and it brings me back to the login screen. I think that it wont send the session data and thats the problem. I'm not sure but can the problem be that I am on a wireless connection? And my browser is allowing sessions from other sites, Just not that script. I tried both browsers IE and Mozilla Fire Fox. Neither worked on my computer. Please help I REALLY NEED THIS TO WORK! I even tried reinstalling my browser!!!


Thanks in advance,
Joe


Also I will incluse three of files scripts...


Login.php:
Code:
<?
require('config.php');
require('bar.php');

if($userData[user] !="" && $userData[pass] !=""){
  if($userData[rank] =="0"){
    Echo"<b>Error:</b> You no longer are employed at $shortDomain - If you are
    caught DJing after now, you will be banned from our website, and reported
    to our partner websites. Your career of DJing on Habbo Fansites will
    be destroyed. You are welcome to get more experience, and apply next time
    applications open.


    <hr width='100%' height='1' color='#000000' shade='no'>
    <u>Message from Administration:</u><br>
    $userData[msg]";
    exit;
  }
  
  Echo"You are already logged in. Please use the staff login bar at the top
  of this page to navigate.<br>";
  exit;
}

switch($_GET['act']){
default:
  Echo"<center><b>Staff Login</b></center>
  This is the $websiteName Staff Login. Only DJ's and Administrators have an
  account, please do not try and brute force into a staff members account.
  If you forgot your password, please use the
  <a href='contact.php'>contact forms</a>.
  
  <hr width='100%' height='1' color='#000000' shade='no'>
  
  <form method='post' action='login.php?act=submit'>
  <table>
  <tr>
    <td>Username:</td>
    <td><input type='text' name='user' size='20'></td>
  </tr>
  <tr>
    <td>Password:</td>
    <td><input type='password' name='pass' size='20'></td>
  </tr>
  <tr>
    <td></td>
    <td><input type='submit' value='Login'></td>
  </tr>
  </table>
  </form>";
break;

case"submit":
  $user = $_POST['user']; $pass = $_POST['pass'];
  $pass = md5($pass);
  
  // Validity
  $validityQuery = mysql_query("SELECT * FROM users WHERE user ='$user' AND pass ='$pass'");
  if(mysql_num_rows($validityQuery) =="0"){
    Echo"<b>Error:</b> Invalid Username/Password Combination<br>
    If you have been hired, and you typed in your information corrently,
    DO NOT WORRY! This simply means your account wasn't completely created.
    Please use our <a href='contact.php'>contact</a> form. Tell us your desired
    username and password and we will check it against Application Logs. Before
    you do that, please try again and type your password in more carefully.
    Your username is your Habbo Hotel name. <br><br>
    - <a href='login.php'>Back</a>";
    exit;
  }
  $validityData = mysql_fetch_array($validityQuery);
  
  $_SESSION["user"] = $validityData[user];
  $_SESSION["pass"] = $validityData[pass];
  
  Echo"<b>You are now logged in, click <a href='login.php'>here</a> to refresh.
  (Allows Staff Bar to Load)";
break;

}
?> 



config.php:
Code:
<?PHP

session_start();

// Install Variable
$installed ="Y"; // Y/N

// Connect
mysql_connect ("", "", "");
mysql_select_db ("");

// Domain Vars
$shortDomain = "";
$wwwDomain = "smileyoureahabbo.freepgs.com";
$longDomain = "http://smileyoureahabbo.freepgs.com";
$websiteName = "smileyoureahabbo.net.tf";
$adminEmail = "smileyoureahabbo.net.tf";

// Radio Vars
$scdef = "";
$scip = "";
$scport = "";
$scpass = "";

// Allow Important.php
$check = "10245";

require('important.php');

?>


bar.php

Code:
<?
require('config.php');

if($userData[user] =="" || $userData[pass] ==""){
  Echo"Username: Not Logged In - Click <a href='login.php'>here</a> to login.
  <hr width='100%' height='1' color='#000000' shade='no'>";
}else{
  if($userData[rank] =="0"){
    $linksVar ="You are no longer staff at $websiteName, Sorry.";
  }else{
    $linksVar ="| <a href='requests.php'>Request Line</a> |
                <a href='info.php'>Radio Info</a> |
                <a href='rules.php'>DJ Rules</a> |
                <a href='cps.php'>Control Panels</a> |
                <a href='message.php'>DJ Says</a> |";
  }
  
  Echo"User: $userData[user] $linksVar
  <hr width='100%' height='1' color='#000000' shade='no'>";
}

?>


I have taken all the passwords out of the scripts before I posted it.

Reply With Quote
  #2  
Old July 6th, 2006, 02:39 AM
trippleweb's Avatar
trippleweb trippleweb is offline
Contributing User
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Victoria, BC, Canada
Posts: 702 trippleweb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 25 m 54 sec
Reputation Power: 2
RE: Problem With This Script. [URGENT ATTENTION!!!]

Is register_globals on or off, it may be coded for ON.

Reply With Quote
  #3  
Old July 6th, 2006, 10:06 AM
instigator instigator is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Maryland
Posts: 1,158 instigator User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 20 m 13 sec
Reputation Power: 3
RE: Problem With This Script. [URGENT ATTENTION!!!]

did it give you an error like "invalid username or password" or something like that? or did it just go back to the login screen like you never tried before?

Reply With Quote
  #4  
Old July 6th, 2006, 02:51 PM
jad9321 jad9321 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 7 jad9321 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Problem With This Script. [URGENT ATTENTION!!!]

Ok...

Yes register_globals is on... and It lets me login than i get a message "You are now logged in, click Here to refresh (Allows Staff Bar to Load)" I click there and it brings me back to the login screen... :/ All my system info is here... http://smileyoureahabbo.freepgs.com/test.php

Reply With Quote
  #5  
Old July 6th, 2006, 07:40 PM
bluephoenix's Avatar
bluephoenix bluephoenix is offline
Levelheaded Curmudgeon
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Syracuse, NY
Posts: 507 bluephoenix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 13 m 2 sec
Reputation Power: 2
Send a message via AIM to bluephoenix
RE: Problem With This Script. [URGENT ATTENTION!!!]

Have you tried contacting the author of the script for assistence? -Tim

Reply With Quote
  #6  
Old July 6th, 2006, 08:27 PM
jad9321 jad9321 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 7 jad9321 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Problem With This Script. [URGENT ATTENTION!!!]

Yes,
He is like "Work dosent come free child... I aam not giveing tech support on a free script... Go kill your self." He is not helpful at all... :

Reply With Quote
  #7  
Old July 6th, 2006, 11:16 PM
lig's Avatar
lig lig is offline
"Forum Nazi"
Codewalkers Demi-God (4500 - 4999 posts)
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,720 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 20 m 53 sec
Reputation Power: 6
RE: Problem With This Script. [URGENT ATTENTION!!!]

no where in bar.php do I see it using the session variable the login set. I would start there.

Reply With Quote
  #8  
Old July 6th, 2006, 11:18 PM
jad9321 jad9321 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 7 jad9321 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Problem With This Script. [URGENT ATTENTION!!!]

Huh???

Reply With Quote
  #9  
Old July 6th, 2006, 11:26 PM
instigator instigator is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Maryland
Posts: 1,158 instigator User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 20 m 13 sec
Reputation Power: 3
RE: Problem With This Script. [URGENT ATTENTION!!!]

i might be missing it, but i don't see anywhere where you set $userData...

Reply With Quote
  #10  
Old July 6th, 2006, 11:32 PM
lig's Avatar
lig lig is offline
"Forum Nazi"
Codewalkers Demi-God (4500 - 4999 posts)
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,720 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 20 m 53 sec
Reputation Power: 6
RE: Problem With This Script. [URGENT ATTENTION!!!]

When someone answers a question - it is considered polite for you to at least do some research in the area they have pointed out rather then ask them to explain (since we are volunteers rather then a help desk).

I talked about a session variable. did you at least go to the manual and read up a bit on them? Did you google a bit - maybe read wikipedia to see what the concepts behind sessions are? Did you look at your code and try to reason out what I meant? did you try to narrow down the what your question on my answer was so I can clearly answer it?

please read: http://www.catb.org/~esr/faqs/smart-questions.html#lesser

Reply With Quote
  #11  
Old July 7th, 2006, 02:16 AM
jad9321 jad9321 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 7 jad9321 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Problem With This Script. [URGENT ATTENTION!!!]

Sorry just really dont have much time and i cant read anything now.

Reply With Quote
  #12  
Old July 7th, 2006, 02:51 AM
lig's Avatar
lig lig is offline
"Forum Nazi"
Codewalkers Demi-God (4500 - 4999 posts)
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,720 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 20 m 53 sec
Reputation Power: 6
RE: Problem With This Script. [URGENT ATTENTION!!!]

*Note: my time is worth at least as much as yours jad9321.

Reply With Quote
  #13  
Old July 7th, 2006, 10:05 AM
instigator instigator is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Maryland
Posts: 1,158 instigator User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 20 m 13 sec
Reputation Power: 3
RE: Problem With This Script. [URGENT ATTENTION!!!]

if you want us to do it for you because you "don't have time" to learn, this should be in the barter zone. we're volunteers, but we're not suckers. we only give advice for free, we don't work for free. a wise man once said...
Quote:
"Work dosent come free child... I aam not giveing tech support on a free script... Go kill your self."

Reply With Quote
  #14  
Old July 7th, 2006, 02:12 PM
bluephoenix's Avatar
bluephoenix bluephoenix is offline
Levelheaded Curmudgeon
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Syracuse, NY
Posts: 507 bluephoenix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 13 m 2 sec
Reputation Power: 2
Send a message via AIM to bluephoenix
RE: Problem With This Script. [URGENT ATTENTION!!!]

Perhaps I'm cynical, but I suspected this would be the situation when I saw URGENT ATTENTION in the subject line. Sigh.

-Tim

Reply With Quote
  #15  
Old July 7th, 2006, 02:40 PM
jad9321 jad9321 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 7 jad9321 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Problem With This Script. [URGENT ATTENTION!!!]

Ok guys.. You don't understand, I was just in a car accedent that 2 of my friends died in. I have furenals, Court cases, All that stuff. I Litterally HAVE NO TIME. And I dont axpect you to do it for me. I just really need some help when I'm not able to do things. I am still really upset about it and I really need some help.

Reply With Quote
Reply

Viewing: Codewalkers ForumsGeneralBarter Zone > Problem With This Script. [URGENT ATTENTION!!!]


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off