UCP SA:MP on localhost
#1

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 .
Reply
#2

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
?>
Reply
#3

EDITED...
Use jStyleZzzz method
Reply
#4

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

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'.
Reply
#6

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,,,
Reply
#7

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

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
Reply
#9

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

Ai rezolvat aceasta problema ? stiu ca esti roman!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)