|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
RE: Problem With This Script. [URGENT ATTENTION!!!]
Is register_globals on or off, it may be coded for ON.
|
|
#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?
|
|
#4
|
|||
|
|||
|
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 |
|
#5
|
||||
|
||||
|
RE: Problem With This Script. [URGENT ATTENTION!!!]
Have you tried contacting the author of the script for assistence? -Tim
|
|
#6
|
|||
|
|||
|
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... : |
|
#7
|
||||
|
||||
|
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.
|
|
#8
|
|||
|
|||
|
RE: Problem With This Script. [URGENT ATTENTION!!!]
Huh???
|
|
#9
|
|||
|
|||
|
RE: Problem With This Script. [URGENT ATTENTION!!!]
i might be missing it, but i don't see anywhere where you set $userData...
|
|
#10
|
||||
|
||||
|
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 |
|
#11
|
|||
|
|||
|
RE: Problem With This Script. [URGENT ATTENTION!!!]
Sorry just really dont have much time and i cant read anything now.
|
|
#12
|
||||
|
||||
|
RE: Problem With This Script. [URGENT ATTENTION!!!]
*Note: my time is worth at least as much as yours jad9321.
|
|
#13
|
|||
|
|||
|
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:
|
|
#14
|
||||
|
||||
|
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 |
|
#15
|
|||
|
|||
|
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.
|
![]() |
| Viewing: Codewalkers Forums > General > Barter Zone > Problem With This Script. [URGENT ATTENTION!!!] |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|