
I hope thats clear enough.
Anybody know how to do this?
$story['id'] = $storyid;
$story['posttime'] = formatTimestamp($article->published());
$story['title'] = $article->textlink()." : ".$article->title();
$story['text'] = $article->hometext();
$bodytext = $article->bodytext();
." : ".$article->title()
// directory where spaw files are located
if (substr_count($HTTP_SERVER_VARS["SCRIPT_FILENAME"],"admin") == 1) {
// Administration
include '../../../../../mainfile.php';
$spaw_dir = 'spaw/';
} else {
// User Submit
include '../../../../mainfile.php';
$spaw_dir = 'admin/spaw/';
}
// directory where spaw files are located
if (substr_count($HTTP_SERVER_VARS["SCRIPT_NAME"],"admin") == 1) {
// Administration
include '../../../../../mainfile.php';
$spaw_dir = 'spaw/';
} else {
// User Submit
include '../../../../../mainfile.php';
$spaw_dir = 'spaw/';
}
Warning: main(../../../../mainfile.php): failed to open stream: no such file or directory in
c:\inetpub\wwwroot\modules\news\admin\admin\spaw\config\spaw_control.config.php
on line 23
Warning: main(): failed opening'../../../../mainfile.php' for inclusion(include_path-'.c;\php4\pear') in
c:\inetpub\wwwroot\modules\news\admin\admin\spaw\config\spaw_control.config.php
on line 23
Fatal error: Call to a member function on a non-object in
c:\inetpub\wwwroot\modules\news\admin\admin\spaw\config\spaw_control.config.php
on line 78