Hello

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lewisstevens1
Forum Newbie
Posts: 10
Joined: Thu Mar 19, 2009 10:28 am

Hello

Post 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..?
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Hello

Post 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.
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: Hello

Post by McInfo »

Evidence suggests that the script is part of LiveStreet CMS.
lewisstevens1
Forum Newbie
Posts: 10
Joined: Thu Mar 19, 2009 10:28 am

Re: Hello

Post by lewisstevens1 »

Yes, although i cant change anything in it...so might just delete it..
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: Hello

Post by McInfo »

You can find the HTML in the "templates/skins" folder. LiveStreet uses Smarty template engine.
lewisstevens1
Forum Newbie
Posts: 10
Joined: Thu Mar 19, 2009 10:28 am

Re: Hello

Post by lewisstevens1 »

but how would i edit those files..? notepad++?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Hello

Post by Celauran »

Sure. Any text editor will work.
Post Reply