User Control Panel HELP (+1rep)
#1

I've downloaded Sensation Roleplay's UCP. ( https://github.com/AidanRO/Sensation...y-UCP/releases )

I've searched many tutorials about connecting a UCP to your database but I did not find anything good.


Can you help me how to do it? And UCp is loading so damn hard.


http://vestigedayz.com/ucp/index/


Thank you (Even if it's not PHP help zone, it's related to SA:MP scripting)


Код:
<?php
session_start();// Starting Session
include ("variables.php");
$connection = mysql_connect($dbservername, $dbusername, $dbpassword);
mysql_select_db($dbname, $connection);
// Storing Session
$user_check=$_SESSION['login_user'];
// SQL Query To Fetch Complete Information Of User
$ses_sql=mysql_query("select Username from Accounts where Username='$user_check'", $connection);
$row = mysql_fetch_array($ses_sql);
$login_session =$row['Username'];
if(!isset($login_session)){
mysql_close($connection); // Closing Connection
}
?>
Reply
#2

As that UCP isn't built around your script you'll most likely have to spend a lot of time re-working it to function with your script/server. This being said there shouldn't be any issues connecting it to your database.

I've had a brief look over the contents of that UCP. All your database configs are in "variables.php".
Reply
#3

So, it would be easier for me to do new UCP?

I want only : Alive Hours ; Inventory items ; Equiped weapons ; Level ; Staff rank ; faction ; if faction leader ; if it's in ajail ; if it's banned .

Few things, not something complicated.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)