/******************
fusion news
by the fusion team
version 2.2
http://www.fusionphp.com******************/
//variables (change these)
$config = "config.php"; //your config file
$users = "users.php"; //your users file
//stop (theres no more editing)
include $config;
//start
if($id == ""){
if($first == "yes"){
$title = "fusion install";
$content = <<< HTML
most information should be right. please review it.
HTML;
}
}
else{
$title = "already installed";
$content = <<< HTML
already installed
HTML;
}
//go
if($id == "go"){
if($bbc == "y"){
$bbca = 1;
}
else{
$bbca = 0;
}
if($html == "y"){
$h = 1;
}
else{
$h = 0;
}
$p1 = $SCRIPT_FILENAME;
$p2 = str_replace("/installer.php", "", $p1);
//write to file
$page = $config;
$filename = $config;
$fp = fopen($filename,w);
$current = fread($fp, filesize($filename));
fclose($fp);
//what to write
$save = "\\$site = \\"$site1\\";
\\$furl = \\"$furl1\\";
\\$hurl = \\"$furl1/news.php\\";
\\$fullnewsurl = \\"$fullnews\\";
\\$newsfile = \\"$p2/news.txt\\";
\\$headlines = \\"$p2/headlines.txt\\";
\\$fnewsfile = \\"$p2/news.php\\";
\\$dfile = \\"$p2/news.db\\";
\\$arc = \\"$p2/archive.txt\\";
\\$fnewsfile = \\"$p2/news.php\\";
\\$datefor = \\"m/d/y\\";
\\$numofposts = 11;
\\$numofh = 5;
\\$bb = $bbca;
\\$ht = $h;
\\$first = \\"no\\";
\\$header = \\"\\";
\\$footer = \\"\\";
\\$skin = \\"standard\\";
\\$temp = \\"
{icon} |
{subject} posted by {user} on {date}
{news}
|
\\";
\\$ftemp = \\"
{icon} |
{subject} posted by {user} on {date}
{news}
|
\\";
?>";
$save .= "$current";
$configfile = fopen($config,w);
fputs($configfile,$save);
fclose($configfile);
//what to write
$fp=fopen($users,a);
fwrite($fp,"$username|$email|$icon|$password|$le|\\n");
fclose($fp);
$title = "setup complete";
$content = "setup complete.
go back.";
}
?>
fusion
http://www.fusionphp.com/fusion/fusion.gif"> |
powered by http://www.fusionphp.com">fusion