Los Santos the Next Episode - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Los Santos the Next Episode (
/showthread.php?tid=161961)
[Help]Los Santos the Next Episode editing config.inc.php -
Jose 510 - 21.07.2010
Ok I've had this script for a few weeks and I can't seem to understand how to edit the config.inc.php file. I know most of it but was wondering if someone can help me out with the parts I need help on.
Код:
<?
/*
Credits:
- Alessandro Morandi 'www.simbul.net' (Tipmage-1.0.js file)
- http://www.freecsstemplates.org/ (some parts of the css/template)
- Lokesh Dhakar - http://www.huddletogether.com (lightbox.css and lightbox.js file)
- Sneaky (testing + ideas)
Los Santos The Next Episode Stats/Control Panel php Website
Copyright © 2008 G-sTyLeZzZ
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
(I dont know how to edit these parts)
--------------------------
/*$config = array(
'Host' => '85.17.177.164', < i guess that's the IP for the website I am hosting this file on
'User' => 'sneaky', <no clue
'Pass' => 'haxors', <no clue
'DB' => 'LSTNE');*/ <no clue
$config->Favorite = 'stats.lstne.net';
//MySQL Configuration
// MySQL Host
$config->Host = 'localhost'; < I kinda have a clue but I still need more explanation
// MySQL Database Pass
$config->User = 'user'; < I kinda have a clue but I still need more explanation
// MySQL User
$config->Pass = 'pass'; < I kinda have a clue but I still need more explanation
// MySQL Database
$config->DB = 'db'; < I kinda have a clue but I still need more explanation
--------------------------
//Other Stuff
(I know how to edit this part)
//control panel version
$config->Version = 'Control Panel 1.01 beta';
//website title
$config->Websitetitle = 'Los Santos The Next Episode';
//header title
$config->Header = 'Los Santos The Next Episode';
// footer title
$config->Footer = 'Copyright © 2008 Los Santos The Next Episode';
// socket to query the server ( 1 = on ; anthing else = off )
$config->Socket = 1;
// your server ip
$config->ServerIP = '91.121.117.84';
// server port
$config->Port = 1337;
// Max Players in the server
$config->MaxPlayers = 100;
//Directory
//directory of the gangzone file ( important to draw the gangzones! )
$config->ZoneDir = '../../../server/scriptfiles/main/zones.ini';
//zones amount
$config->Zoneamount = 26;
//player positions file directory ( used for the onlinemap to show player location/stats )
$config->playerinfo = '../../../server/scriptfiles/info.txt';
//allowed types for avatar upload
$config->types = array('jpg', 'gif', 'png');
//maximal filesize for avatars
$config->maxsize = 200*200;
//upload dir for avatars
$config->upload_dir = 'images/avatars/';
?>
Re: Los Santos the Next Episode -
MisterTickle - 21.07.2010
Do you have a SQL server setup?
Re: Los Santos the Next Episode -
Jose 510 - 21.07.2010
Yes I just set up one up a few minutes ago
Re: Los Santos the Next Episode -
MisterTickle - 21.07.2010
It appears this comes with a PHP Panel/Website, Do you have that active aswell?
I'm no PHP expert but I believe that
Код:
/*$config = array(
'Host' => '85.17.177.164', < i guess that's the IP for the website I am hosting this file on
'User' => 'sneaky', <no clue
'Pass' => 'haxors', <no clue
'DB' => 'LSTNE');*/ <no clue
Relates to the panel and the My SQL info below it, Well you need to put in the SQL info and since you said you have one setup (Hopefully with the right tables and information)
Re: Los Santos the Next Episode -
Jose 510 - 21.07.2010
Yes I have all of that.
Re: Los Santos the Next Episode -
Jose 510 - 22.07.2010
All I want to know what are the differences between:
Код:
/*$config = array(
'Host' => '85.17.177.164', < i guess that's the IP for the website I am hosting this file on
'User' => 'sneaky', <no clue
'Pass' => 'haxors', <no clue
'DB' => 'LSTNE');*/ <no clue
$config->Favorite = 'stats.lstne.net'; <and what is this?
and this:
Код:
//MySQL Configuration
// MySQL Host
$config->Host = 'localhost'; < I kinda have a clue but I still need more explanation
// MySQL Database Pass
$config->User = 'user'; < I kinda have a clue but I still need more explanation
// MySQL User
$config->Pass = 'pass'; < I kinda have a clue but I still need more explanation
// MySQL Database
$config->DB = 'db'; < I kinda have a clue but I still need more explanation
Because I already filled out the MySQL parts but what about the php part? Is it the same information?
Re: [Help]Los Santos the Next Episode editing config.inc.php -
Jose 510 - 22.07.2010
Anyone ?