Page 1 of 1

Hello

Posted: Mon Nov 22, 2010 11:23 am
by lewisstevens1
Hi i know a bit of html and php, only problem is ive been given this script which id like to change... id liike to edit some things but I do not have a clue how to... the main php script file is this:

Code: Select all

<?php

error_reporting(E_ALL);
ini_set('display_errors', 1);
define('LS_VERSION','0.4.2');
define('SYS_HACKER_CONSOLE',false);
header('Content-Type: text/html; charset=utf-8');

set_include_path(get_include_path().PATH_SEPARATOR.dirname(__FILE__));
chdir(dirname(__FILE__));

require_once("./config/loader.php");
require_once(Config::Get('path.root.engine')."/classes/Engine.class.php");

$oProfiler=ProfilerSimple::getInstance(Config::Get('path.root.server').'/logs/'.Config::Get('sys.logs.profiler_file'),Config::Get('sys.logs.profiler'));
$iTimeId=$oProfiler->Start('full_time');

$oRouter=Router::getInstance();
$oRouter->Exec();

$oProfiler->Stop($iTimeId);
?>

When i navigate to this page a whole website appears, its strange, i dont even know how to add a <p> font tag in it and it wud appear in a section of the site...can anyone help me..?

Re: Hello

Posted: Mon Nov 22, 2010 5:31 pm
by Jonah Bron
That script is loading other things. You need to look through the rest of your files and find the correct file to edit.

Re: Hello

Posted: Mon Nov 22, 2010 7:43 pm
by McInfo
Evidence suggests that the script is part of LiveStreet CMS.

Re: Hello

Posted: Tue Nov 23, 2010 4:22 pm
by lewisstevens1
Yes, although i cant change anything in it...so might just delete it..

Re: Hello

Posted: Wed Nov 24, 2010 12:16 pm
by McInfo
You can find the HTML in the "templates/skins" folder. LiveStreet uses Smarty template engine.

Re: Hello

Posted: Thu Nov 25, 2010 6:04 pm
by lewisstevens1
but how would i edit those files..? notepad++?

Re: Hello

Posted: Thu Nov 25, 2010 7:29 pm
by Celauran
Sure. Any text editor will work.