Hi Leutz bin neu hier im Forum und wollte euch fragen ob ihr mir evtl bei einem Skript helfen könnt.
Ich möchte euch nicht zu spammen hier aber ich poste euch einfach mal die Skripte:
Das ist des writeblackbook.php (des habe ich nicht geschrieben sondern nen freund nur er kann mir im mom nid helfen dabei )
ZitatAlles anzeigen
<?php
if (adminaccess('blackbook')) {
if (isset($_REQUEST['catid'])) $catid=$_REQUEST['catid'];
if (isset($_POST['action'])) $ACTION=$_POST['action'];
else $ACTION='view';if ($ACTION==$_POST['delete']) {
$DB->query("DELETE FROM ".$db_tab['blackbook']." WHERE blackbook_id='".$_POST['blackbook_id']."' LIMIT 1");
header("location: admin.php?path=blackbook/archiv.php&PHPKITSID=".session_id()); exit();
}
elseif ($ACTION==$_POST['save'] intval($_POST['blackbook_id'])>0) {
if ($_REQUEST['blackbook_id']=='new') {
$DB->query("INSERT INTO ".$db_tab['blackbook']." (blackbook_titel) VALUES ('new')");
$blackbook_id=$DB->insert_id();
}
else $blackbook_id=$_REQUEST['blackbook_id'];$DB->query("UPDATE ".$db_tab['blackbook']." SET blackbook_titel='".addslashes($_POST['blackbook_titel'])."', blackbook_charinfo='".addslashes($_POST['blackbook_charinfo'])."', blackbook_reason='".addslashes($_POST['blackbook_reason'])."', blackbook_action='".addslashes($_POST['content'])."', blackbook_catid='".$_POST['catid']."' WHERE blackbook_id='".$blackbook_id."'");
header("location: admin.php?path=blackbook/writeblackbook.php&blackbook_id=".$blackbook_id."&PHPKITSID=".session_id()."");
}if (intval($_REQUEST['blackbook_id'])>0) {
$blackbookinfo=$DB->fetch_array($DB->query("SELECT * FROM ".$db_tab['blackbook']." WHERE blackbook_id='".$_REQUEST['blackbook_id']."' LIMIT 1"));
$blackbook_id=$blackbookinfo['blackbook_id'];
$catid=$blackbookinfo['blackbook_catid'];
$blackbook_titel=htmlentities($blackbookinfo['blackbook_titel']);
$blackbook_charinfo=htmlentities($blackbookinfo['blackbook_charinfo']);
$blackbook_reason=htmlentities($blackbookinfo['blackbook_reason']);
$blackbook_action=htmlentities($blackbookinfo['blackbook_action']);
}
else $blackbook_id='new';$getblackbookcat=$DB->query("SELECT * FROM ".$db_tab['blackbookcat']." ORDER by blackbookcat_title ASC");
while($blackbookcat=$DB->fetch_array($getblackbookcat)) {
if ($catid==$blackbookcat['blackbookcat_id']) {
$selected='selected';
$blackbookcat_title=$blackbookcat['blackbookcat_title'];
}
else unset($selected);
eval ("\$blackbookcat_option.= \"".templateinclude("blackbook/blackbookcat_option")."\";");
}
if ($catid!="") eval ("\$blackbookcat_body= \"".templateinclude("blackbook/writeblackbook_form")."\";");
eval ("\$site_body.= \"".templateinclude("blackbook/writeblackbook")."\";");
}
else {header ("location: index.php?PHPKITSID=".session_id()); exit();}
?>
Das ist des blackbookcat.php
ZitatAlles anzeigen
<?php
if (adminaccess('blackbook')) {
if (isset($_REQUEST['catid'])) $catid=$_REQUEST['catid'];
else unset($catid);
if (isset($_POST['action'])) $ACTION=$_POST['action'];
else $ACTION='view';if ($ACTION==$_POST['save'] && $_POST['blackbookcat_title']!='') {
if ($catid=='new') {
$DB->query("INSERT INTO ".$db_tab['blackbookcat']." (blackbookcat_title) VALUES ('new')");
$catid=$DB->insert_id();
}
$DB->query("UPDATE ".$db_tab['blackbookcat']." SET blackbookcat_title='".addslashes($_POST['blackbookcat_title'])."' WHERE blackbookcat_id='".$catid."'");
header("location: admin.php?path=blackbook/blackbookcat.php&PHPKITSID=".session_id()); exit();
}$getblackbookcat=$DB->query("SELECT * FROM ".$db_tab['blackbookcat']." ORDER by blackbookcat_title ASC");
while($blackbookcat=$DB->fetch_array($getblackbookcat)) {
if ($catid==$blackbookcat['blackbookcat_id']) $blackbookcat_title=$blackbookcat['blackbookcat_title'];
eval ("\$blackbookcat_option.= \"".templateinclude("blackbook/blackbookcat_option")."\";");
}
if ($catid>0 ||$catid=='new') eval ("\$blackbookcat_body= \"".templateinclude("blackbook/blackbookcat_form")."\";");eval ("\$site_body.= \"".templateinclude("blackbook/blackbookcat")."\";");
}
else {header ("location: index.php?PHPKITSID=".session_id()); exit();}
?>
Des ist des index.php
Zitat
<?php header ("location: ../index.php"); exit(); ?>
Und des ist de archiv.php
ZitatAlles anzeigen
<?php
if (adminaccess('blackbook')) {
$getblackbookcat=$DB->query("SELECT * FROM ".$db_tab['blackbookcat']." ORDER by blackbookcat_title ASC");
while($blackbookcat=$DB->fetch_array($getblackbookcat)) {$blackbookcat_cache[$blackbookcat['blackbookcat_id']]=$blackbookcat;}
$getblackbook=$DB->query("SELECT * FROM ".$db_tab['blackbook']." ORDER by blackbook_titel ASC");
while($blackbook=$DB->fetch_array($getblackbook)) {
$row=rowcolor($row);
if (trim($blackbook_title=$blackbook['blackbook_titel'])=='') $blackbook_title='<font class="highlight">'.$lang['no_title'].'</font>';
$blackbookcat=$blackbookcat_cache[$blackbook[blackbook_catid]];
eval ("\$archiv_row.= \"".templateinclude("blackbook/archiv_row")."\";");
}
eval ("\$site_body.= \"".templateinclude("blackbook/archiv")."\";");
}
else {header ("location: index.php?PHPKITSID=".session_id()); exit();}
?>
Wie ihr bestimtm schon bemerkt habt ist des ein Admin Menu Skript und da issen fehler irgendwie drin weil wenn ich meine adresse aufrufe bsp: http://www.meine-homepage.de/admin/blackbook/writeblackbook.php oder archiv.php oder blackbookcat.php
kommt folgende fehler meldung:
Zitat
Fatal error: Call to undefined function: adminaccess() in /usr/export/www/vhosts/funnetwork/hosting/anathema/admin/blackbook/archiv.php on line 2Fatal error: Call to undefined function: adminaccess() in /usr/export/www/vhosts/funnetwork/hosting/anathema/admin/blackbook/writeblackbook.php on line 2
Fatal error: Call to undefined function: adminaccess() in /usr/export/www/vhosts/funnetwork/hosting/anathema/admin/blackbook/blackbookcat.php on line 2