Salve a tt, ho un problema col cms bmachine2.
Ho seguito le istruzioni che mi dava ma una volta hostati i file mi dà un errore nella index, nella funzione dfil() .
Il codice della index.php è il seguente:
Codice PHP:
<?php
/*
###########################################
bMachine v2.8
Developed by Kailash Nadh
Email : kailash@bnsoft.net
Website : www.bnsoft.net
bMachine aka boastMachine
Email : admin@boastology.com
Website : www.boastology.com
###########################################
*/
//#############################################
include_once "config.php";
chkIP();
if($db == "mysql") { include_once CFG_ROOT."/inc/mysql/main.mysql.php"; } else { include_once CFG_ROOT."/inc/flat/main.flat.php"; }
// Produce Printer friendly page
if($_GET["print"]) {
prnt(); exit();
}
if($_GET["rate"]) {
// Check wheter voting is enabled
if(!$m_vote) {
header("Location: index.php?id=$_GET[f]") or scrpt("index.php?id=$_GET[f]"); exit();
}
// Flood prevention :)
if($_COOKIE["bnRte"] == "$_GET[f]") { header("Location: index.php?id=$_GET[f]&bn=78Rtd0D00exz") or scrpt("index.php?id=$_GET[f]&bn=78Rtd0D00exz"); exit(); }
setcookie("bnRte","$_GET[f]");
$rn=trim($_GET[rate]);
if($rn != "1" && $rn != "2" && $rn != "3" && $rn != "4" && $rn != "5") { header("Location: index.php?id=$_GET[f]&bn=78Rtd0D00exz") or scrpt("index.php?id=$_GET[f]&bn=78Rtd0D00exz"); exit(); }
rateit($rn,trim($_GET[f]));
header("Location: index.php?id=$_GET[f]&bn=78Rtd0D00exz") or scrpt("index.php?id=$_GET[f]&bn=78Rtd0D00exz");
}
// Is the request for the FULL article or just the summary
if($_GET[id]) {
$fmt="full";
}
// Show articles posted on a specific date
if($_GET[show]) {
showbyDate($_GET[d],$_GET[m],$_GET[y]);
}
// Show articles in a specific category
if($_GET[cat]) {
showByCat($_GET[cat]);
}
// Display the articles
if($fmt == "full") { doDat($_GET[id],""); } else { dfil(); }
ftr("$s_title","");
//#############################################
// Printer Friendly Function
function prnt() {
global $c_urls;
$id=$_GET[pg];
if(!trim($id)) { header("Location: index.php") or scrpt("index.php"); exit; }
$ar=getSpost($id);
if(!trim($ar[title])) { header("Location: index.php") or scrpt("index.php"); exit; }
$page=$ar[data];
$page=eregi_replace("<img src=[^>]*>", "", $page);
$page=eregi_replace("<font[^>]*>", "", $page);
$page=wordwrap($page,80,"\n",1);
$ar[date]=bmcDate($date);
echo <<<EOF
<HTML><HEAD><TITLE>$ar[title]</TITLE>
<link rel="stylesheet" href="style.css">
</HEAD><BODY>
<p><span class="title">$ar[title]</span><br>
Posted by <span class="a_name">$ar[a_name]</span> on <span class="date">$ar[date]</span><br></p>
<pre><span class="content">$page</span></pre>
<hr size="1">
<span class="t_small">Article from : $c_urls</span><br>
<span class="t_small">Printed from : $c_urls/?id=$id</span>
</BODY></HTML>
EOF;
exit();
}
?>
L'unica parte dove stà scritto dfil() è la riga 65 (posto tre righe dove è compresa) cioè:
Codice PHP:
// Display the articles
if($fmt == "full") { doDat($_GET[id],""); } else { dfil(); }
ftr("$s_title","");
Come posso fare per aggiustare quest'errore? Vi ringrazio anticipatamente e comunque, bye bye