SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 21/07/2010, 06:24 PM   #1
Jose 510
Huge Clucker
 
Join Date: Jun 2008
Posts: 289
Reputation: 0
Question [Help]Los Santos the Next Episode editing config.inc.php

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.

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';

//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 &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

//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/'; 
?>
__________________

On LSRP
Enrique Diaz
Level 9
Occupation: None
Status: Alive; trying to survive.

Last edited by Jose 510; 22/07/2010 at 08:38 AM.
Jose 510 is offline  
Old 21/07/2010, 07:07 PM   #2
MisterTickle
Huge Clucker
 
MisterTickle's Avatar
 
Join Date: Jul 2007
Posts: 358
Reputation: 52
Default Re: Los Santos the Next Episode

Do you have a SQL server setup?
__________________
MisterTickle is offline  
Old 21/07/2010, 07:15 PM   #3
Jose 510
Huge Clucker
 
Join Date: Jun 2008
Posts: 289
Reputation: 0
Default Re: Los Santos the Next Episode

Yes I just set up one up a few minutes ago
__________________

On LSRP
Enrique Diaz
Level 9
Occupation: None
Status: Alive; trying to survive.
Jose 510 is offline  
Old 21/07/2010, 07:19 PM   #4
MisterTickle
Huge Clucker
 
MisterTickle's Avatar
 
Join Date: Jul 2007
Posts: 358
Reputation: 52
Default Re: Los Santos the Next Episode

It appears this comes with a PHP Panel/Website, Do you have that active aswell?

I'm no PHP expert but I believe that

Code:
/*$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)
__________________
MisterTickle is offline  
Old 21/07/2010, 08:05 PM   #5
Jose 510
Huge Clucker
 
Join Date: Jun 2008
Posts: 289
Reputation: 0
Default Re: Los Santos the Next Episode

Yes I have all of that.
__________________

On LSRP
Enrique Diaz
Level 9
Occupation: None
Status: Alive; trying to survive.
Jose 510 is offline  
Old 22/07/2010, 03:16 AM   #6
Jose 510
Huge Clucker
 
Join Date: Jun 2008
Posts: 289
Reputation: 0
Default Re: Los Santos the Next Episode

All I want to know what are the differences between:

Code:
/*$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:

Code:
//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?
__________________

On LSRP
Enrique Diaz
Level 9
Occupation: None
Status: Alive; trying to survive.
Jose 510 is offline  
Old 22/07/2010, 06:17 AM   #7
Jose 510
Huge Clucker
 
Join Date: Jun 2008
Posts: 289
Reputation: 0
Default Re: [Help]Los Santos the Next Episode editing config.inc.php

Anyone ?
__________________

On LSRP
Enrique Diaz
Level 9
Occupation: None
Status: Alive; trying to survive.

Last edited by Jose 510; 22/07/2010 at 08:39 AM.
Jose 510 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 06:57 AM.


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