SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Tutorials

Reply
 
Thread Tools Display Modes
Old 01/12/2013, 06:04 PM   #51
logoster
Big Clucker
 
Join Date: Mar 2012
Posts: 53
Reputation: 1
Default Re: Creating a basic user control panel

what about whirlpool hashing, is there a way to get it to read frmo that, so that people can login?
__________________


Be sure to check out www.nf-gn.com they have awesome server's
logoster is offline   Reply With Quote
Old 01/12/2013, 06:14 PM   #52
BizzyD
Gangsta
 
BizzyD's Avatar
 
Join Date: Jan 2011
Location: Home
Posts: 879
Reputation: 66
Default Re: Creating a basic user control panel

Should not use this anymore, its outdated.
I followed this tutorial when I made my UCP:
[ame]http://www.youtube.com/watch?v=SCOPfzhGGVg[/ame]

It has 4 parts atm, some more is gonna come I think.
__________________
We never fail, we only shine with brilliance. One king one faith one religion. And if you hear me come and join the revolution
BizzyD is offline   Reply With Quote
Old 01/12/2013, 10:16 PM   #53
thefatshizms
High-roller
 
thefatshizms's Avatar
 
Join Date: Dec 2011
Location: England
Posts: 1,754
Reputation: 259
Default Re: Creating a basic user control panel

Quote:
Originally Posted by [SWE]Alexzz View Post
Should not use this anymore, its outdated.
I followed this tutorial when I made my UCP:
http://www.youtube.com/watch?v=SCOPfzhGGVg

It has 4 parts atm, some more is gonna come I think.
You should not use that tutorial as it uses the old MySQL functions which is no longer supported by php. If you're going to make a ucp or any php app that requires database handling use PDO (php data objects) or mysqli.
__________________
SFCNR ******* | SFCNR Forum
thefatshizms is offline   Reply With Quote
Old 06/12/2013, 07:43 PM   #54
System64
Gangsta
 
System64's Avatar
 
Join Date: May 2011
Location: Zadar, Croatia
Posts: 933
Reputation: 143
Default Re: Creating a basic user control panel

Quote:
Originally Posted by DanishHaq View Post
Have you seen the post date? 17/10/2011. Of course it's gonna have problems with it, and I doubt the creator of the topic is going to resolve these issues: Last Activity: 24/08/2013.
Maybe he will one day but not these days. I left sa:mp and I came here few times a year just to check what's new

But I will make a new tutorial on UCP after I setup sa:mp server
__________________
All my works
I left SA:MP! Maybe once I start scripting again but now I'm based on web programming
Soon, I'll buy domain system32.com.hr but for now you can contact me on LogoOff or on my Youtube channel!
System64 is offline   Reply With Quote
Old 12/12/2013, 08:40 PM   #55
FahadKing07
Gangsta
 
FahadKing07's Avatar
 
Join Date: Oct 2013
Location: Miami
Posts: 669
Reputation: 64
Default Re: Creating a basic user control panel

Nice tutorial.

+REP
__________________
Want money to host? Want to sell your gamemode? I will pay, message me.

|| Entrepreneur | Marketing Expert ||
FahadKing07 is offline   Reply With Quote
Old 13/12/2013, 05:42 AM   #56
DavidLuango
Huge Clucker
 
Join Date: Aug 2013
Posts: 279
Reputation: 29
Default Re: Creating a basic user control panel

Glad you actually contributed and gave your best on explanation, good job.
DavidLuango is offline   Reply With Quote
Old 21/03/2014, 09:22 PM   #57
Spydah
Gangsta
 
Spydah's Avatar
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 726
Reputation: 749
Default Re: Creating a basic user control panel

Thank you! It was very helpfully, now I got a working UCP!
__________________

Sexy isn't she?
I don't like +REP askers.
Spydah is offline   Reply With Quote
Old 10/05/2016, 06:56 AM   #58
Micko123
High-roller
 
Micko123's Avatar
 
Join Date: Feb 2016
Location: 127.0.0.1:7777
Posts: 1,204
Reputation: 45
Default Re: Creating a basic user control panel

Znas nije ovo lose Fino je uradjeno
__________________

"You see that guy?? He was a beginner just like you.."

Quote:
Originally Posted by Calgon View Post
The SA-MP community gives the best advice with relationships, you have come to the right place my friend.


Micko123 is offline   Reply With Quote
Old 02/06/2016, 06:37 PM   #59
Zorono
Huge Clucker
 
Join Date: Dec 2015
Location: Africa, Egypt, Alexandria
Posts: 348
Reputation: 30
Default Re: Creating a basic user control panel

Where can i verfiy my server Ip + Port
__________________
Zorono is offline   Reply With Quote
Old 25/07/2016, 05:22 PM   #60
Zeus666
Gangsta
 
Join Date: Mar 2015
Posts: 674
Reputation: 50
Default Re: Creating a basic user control panel

http://vestigedayz.com/ucp/login.php

Why it does not work ?


PHP Code:
<?php 

include("config.php"); //including our config.php where is connecting to mysql... 
session_start(); //starting session for profile.php (Dunno how to explain better) look little down 
error_reporting(0); //without this we will always get some stupid notice that variable isn't defined.... 

$submit $_POST['submit']; //variable for submit button, in this variable we save button that player press in <input type='submit' name="submit" value='Login' />.... 
$username sanitize($_POST['username']); //variable for username, in this variable we save text that user type in <input type="text" name="username".... 
$password sanitize($_POST['password']); //variable for password, in this variable we save text that user type in <input type="password" name="password".... 

if($submit//if he press submit button 
{     
    if(
$username && $password//if he type both of username and password not just one of them 
    

        
$query mysql_query("SELECT username, password FROM users WHERE username = '$username'"); //selecting user name and password, change it to your field names,  chage users to your table name, $username means username that he type... 
        
if(mysql_num_rows($query) == 1//if user exists 
        

            while(
$row mysql_fetch_assoc($query)) //loop thought table that we select in mysql_query 
            

                
$dbusername $row['username']; //setting dbusername as variable from table, change 'username' to your field! 
                
$dbpassword $row['password']; //setting dbpassword as variable from table, change 'password' to your field! 
            

            if(
$username == $dbusername && $password == $dbpassword//if username is same as one from table and if password is the same as one from table... 
            

                
$_SESSION['username'] = $dbusername//setting session username to one from table, this is useful if you login, that restart your browser and than you go in url where is your profile.php... Anyway this is useful :D 
                
echo header('location: profile.php'); //redirecting user to his profile page (profile.php) 
            

            else echo 
"Wrong password!"//else if user type wrong password he will get this... 
        

        else echo 
"Username doesn't exist!"//if username doesn't exist in table user will get this 
    

    else echo 
"Type name and password!"//else if user doesn't type all fields he will get this... 


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Basic UCP</title>
nuj..
<form action='login.php' method='POST'> 
<input type="text" name="username" value='<?php echo $username?>'/> 
<input type="password" name="password"/> 
<input type='submit' name="submit" value='Login' /> 
</form>
</head>
</html>
Zeus666 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with User Control Panel Phoenix_Roleplay Everything and Nothing 6 11/09/2011 11:10 PM
User Control Panel Wright Everything and Nothing 8 11/09/2011 12:00 AM
User Control Panel chrisB463 Help Archive 2 18/06/2011 08:14 PM
[HELP]How to use UCP (User Control Panel) speedy199 Server Support 1 31/03/2009 04:21 PM


All times are GMT. The time now is 08:08 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.