SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 22/07/2010, 09:35 AM   #1
Jose 510
Huge Clucker
 
Join Date: Jun 2008
Posts: 289
Reputation: 0
Question [Help] Editing Los Santos The Next Episode config.inc.php

Yes I have a MySQL Database and user already set up.

Code:
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'; < and what is this?
This is the actual php file.

Code:
<?
/*
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 (C) 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';

I understand this shit

//MySQL Configuration
 
// MySQL Host
$config->Host 		= 'localhost';
// MySQL Database Pass
$config->User 		= 'user';
// MySQL User
$config->Pass 		= 'pass';  
// MySQL Database
$config->DB    		= 'db';  
--------------------------

I understand this shit

//Other Stuff
//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 &copy; 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

/server/scriptfiles/main/zones.ini';
//zones amount                       
$config->Zoneamount	= 26;
//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/'; 
?>
__________________

On LSRP
Enrique Diaz
Level 9
Occupation: None
Status: Alive; trying to survive.
Jose 510 is offline  
Old 22/07/2010, 09:40 AM   #2
Яσскѕтая
Big Clucker
 
Яσскѕтая's Avatar
 
Join Date: Jul 2010
Posts: 106
Reputation: 2
Default Re: [Help] Editing Los Santos The Next Episode config.inc.php

Host: The IP to the MySQL Database site.
User: The login username
Pass: The login password
DB: The database name you setup.
Favorite: I don't know, never heard of it.
Just config the first 4..
Яσскѕтая is offline  
 

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



All times are GMT. The time now is 05:56 PM.


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