SA-MP Forums Archive
UCP SA:MP on localhost - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: UCP SA:MP on localhost (/showthread.php?tid=582421)



UCP SA:MP on localhost - Sn4ke2 - 20.07.2015

hello, can you help me with this ? , i try to open an UCP from PC but i try to edit the configurance.php but i faild
Here is the code
PHP код:

<?php
## Baza de date
$userbaza "user";
$parolabaza "parola";
$numebaza "zp_26205";
$hostbaza "93.119.26.250";
## Baza de date
## General
$adresa "http://panel.sa-zone.com";
$titlu_site "sa-zone.com";
date_default_timezone_set('Europe/Bucharest');
$data_ora date('Y-m-d H:i:s');
$serverIP "samp.sa-zone.com";
$serverPort 7777;
error_reporting(0);
## General
## Variabile
$username htmlspecialchars($_COOKIE['user']);
$password htmlspecialchars($_COOKIE['pass']);
## Variabile
?>
Now how i connect this on localhost.? I have XAMPP .


Re: UCP SA:MP on localhost - Jstylezzz - 20.07.2015

Change $hostbaza to "localhost" or "127.0.0.1"
Then change $numebaza to the name of your local database, and $userbaza to your local username (mostly root), and your $parolabaza to the password for your localhost (mostly nothing, so remove parola and keep blank if that's the case).

Also, if the IP, username and password are really existing and are accessible, I suggest you quickly remove those things from the post because people might use that to do bad things.

EDIT: should look like this probably:

PHP код:

<?php
## Baza de date
$userbaza "root";
$parolabaza "";
$numebaza "databasename"//Change this to your database name
$hostbaza "127.0.0.1";
## Baza de date
## General
$adresa "http://panel.sa-zone.com";
$titlu_site "sa-zone.com";
date_default_timezone_set('Europe/Bucharest');
$data_ora date('Y-m-d H:i:s');
$serverIP "samp.sa-zone.com";
$serverPort 7777;
error_reporting(0);
## General
## Variabile
$username htmlspecialchars($_COOKIE['user']);
$password htmlspecialchars($_COOKIE['pass']);
## Variabile
?>



Re: UCP SA:MP on localhost - Crystallize - 20.07.2015

EDITED...
Use jStyleZzzz method


Re: UCP SA:MP on localhost - Sn4ke2 - 20.07.2015

Here what i need to do? i put all files in htdocs
"Then change $numebaza to the name of your local database"


Re: UCP SA:MP on localhost - Jstylezzz - 20.07.2015

Quote:
Originally Posted by Sn4ke2
Посмотреть сообщение
Here what i need to do? i put all files in htdocs
"Then change $numebaza to the name of your local database"
What is the name of your MySQL database, that you use with your gamemode? That name needs to be in $numebaza. 'nume baza' stands for 'database name'.


Re: UCP SA:MP on localhost - Sn4ke2 - 20.07.2015

I'm done, but i have one problem, here
PHP код:
$adresa "http://panel.sa-zone.com"
I change and i put another name, but not work,,,


Re: UCP SA:MP on localhost - Sn4ke2 - 20.07.2015

Done. @Jstylezzz Thank you ! You have Rep from me !


Re: UCP SA:MP on localhost - Jstylezzz - 20.07.2015

Is the panel located in a folder? Like "/panel/"? If so, just change that whole text to the location of the panel relative to the configuration file.

Example, if the configuration file is located in the root folder and the panel itself is located in the panel folder, you'd probably do $adresa = "/panel/"; (assuming that there is a index.php or index.html present there).

I can't really say anything about this for sure, since I don't know how this system works..


EDIT: Good to see you managed to fix it! Always happy to help


AW: UCP SA:MP on localhost - BigBrainAFK - 20.07.2015

well what ucp is it may we see from where you got it? then we can tell what is wrong with "$adresa"


Re: UCP SA:MP on localhost - Scriptery - 01.10.2015

Ai rezolvat aceasta problema ? stiu ca esti roman!