Gar nichts!
Du kannst höchstens den Datei erstellen un den Robots Befehle geben, wobei sich kaum Bots dran halten ( nur Google hält sich wirklich an alles ).
Und hier gehts:
<?php
# Copyright by: Manuel Staechele
# Support: www.ilch.de
defined ('main') or die ( 'no direct access' );
function get_cats_title ( $catsar ) {
$l = '';
foreach($catsar as $k => $v) {
if ( $k != '' AND $v != '' ) {
$l = $v.' :: '.$l;
}
}
return ($l);
}
function get_cats_urls ( $catsar ) {
$l = '';
foreach($catsar as $k => $v) {
if ( $k != '' AND $v != '' ) {
$l = '<a class="smalfont" href="?links-'.$k.'">'.$v.'</a><b> » </b>'.$l;
}
}
return ($l);
}
function count_files ($cid) {
$zges = 0;
$e = db_query("SELECT id FROM prefix_linkcats WHERE cat = ".$cid);
if ( db_num_rows($e) > 0 ) {
while ($r = db_fetch_assoc($e) ) {
$zges = $zges + count_files ( $r['id'] );
}
}
$zges = $zges + db_count_query("SELECT COUNT(*) FROM prefix_links WHERE cat = ".$cid);
return ( $zges );
}
function get_cats_array ( $cid , $ar ) {
if ( empty($cid) ) {
return ($ar);
} else {
$erg = db_query("SELECT cat,id,name FROM prefix_linkcats WHERE id = ".$cid);
$row = db_fetch_assoc($erg);
$ar[$row['id']] = $row['name'];
return ( get_cats_array($row['cat'],$ar) );
}
if ( $r ) {
return ($l);
}
}
switch ( $menu->getA(1) ) {
default :
$menu = escape($menu->get(1), 'string');
$menu2 = escape($menu->get(2), 'integer');
if ($menu == "downlink" && !empty($menu2) ) {
$design = new design('Link melden', 'Link melden');
$design->header();
$sql = "SELECT * FROM `prefix_links` WHERE `id` = '" . $menu2 . "'";
$query = db_query($sql);
if ( db_num_rows($query) === 1 ) {
$sql2 = "SELECT id FROM prefix_user WHERE recht <= -7";
$query2 = db_query($sql2);
$AdminArray = array();
while ( $obj = db_fetch_object($query2) ) {
$AdminArray[] = $obj->id;
}
$Title = "Meldung: Defekter Link!";
$Text = "Lieber Administrator,\n
so ebent hat " . ( loggedin() ? 'der User' . $_SESSION['authname'] : 'ein Gast' ) . " den Link mit der ID " . $menu2 . " gemeldet.\n
Bitte ueberpruefe den gemeldeten Link und gebe danach den anderen Administratoren Bescheid.\n
\n
Um zu der Linkliste zu gelangen klicke \"[url=index.php?links]hier/url]\"\n
Um in den Admin Bereich zu gelangen klicke bitte \"[url=admin.php?archiv-links]hier[/url]\"";
$myID = loggedin() ? $_SESSION['authid'] : 0;
sendpm($myID, $AdminArray, $Title, $Text);
wd('index.php?links', 'Die Administration wurde benachrichtigt!');
} else {
wd('index.php?links', 'Dieser Link existiert nicht!');
}
$design->footer();
} else {
$cid = ( $menu->get(1) ? escape($menu->get(1), 'integer') : 0 );
$erg = db_query("SELECT cat,name FROM prefix_linkcats WHERE id = ".$cid);
if ( db_num_rows($erg) > 0 ) {
$row = db_fetch_assoc($erg);
$array = get_cats_array($row['cat'],'');
if ( !empty($array) ) {
$titelzw = get_cats_title($array);
$namezw = get_cats_urls($array);
} else {
$titelzw = '';
$namezw = '';
}
$cattitle = ':: '.$titelzw.$row['name'];
$catname = '<b> » </b>'.$namezw.$row['name'];
$catname2 = $row['name'];
} else {
$cattitle = '';
$catname = '';
$catname2 = '';
}
$title = $allgAr['title'].' ';
$design = new design ( $title , $hmenu );
$design->header();
echo '<table width="100%" border="0" cellspacing="1" cellpadding="4"><tr><th colspan="2"><div align="left"><b>»<u>Links</u></b></div></th> </tr></table> ';
$tpl = new tpl ('links' );
$erg = db_query("SELECT id,name,`desc` FROM prefix_linkcats WHERE cat = $cid ORDER BY pos");
if ( db_num_rows($erg) > 0 ) {
$tpl->out(1); $class = 'Cnorm';
while ($row = db_fetch_assoc($erg) ) {
$row['links'] = count_files ($row['id']);
$class = ( $class == 'Cmite' ? 'Cnorm' : 'Cmite' );
$row['class'] = $class;
$tpl->set_ar_out($row,2);
}
$tpl->out(3);
}
$erg = db_query("select id,name,link,banner,`desc`,hits from prefix_links WHERE cat = $cid ORDER BY pos");
if ( db_num_rows($erg) > 0 ) {
$tpl->set_out('catname',$catname2,4); $class = 'Cnorm';
while($row = db_fetch_assoc($erg) ) {
$class = ( $class == 'Cmite' ? 'Cnorm' : 'Cmite' );
$row['class'] = $class;
$row['desc'] = ( !empty($row['desc']) ? '<br /><b>Beschreibung:</b><br />'.$row['desc'].'' : '' );
if ( !empty($row['banner'] ) ) {
$row['name'] = '<img src="'.$row['banner'].'" border="0" alt="'.$row['name'].'" title="'.$row['name'].'">';
}
$tpl->set_ar_out($row,5);
}
$tpl->out(6);
}
include('include/contents/linksadd.php');
$design->footer();
}
break;
case 's' :
$lid = $menu->getE(1);
db_query("UPDATE prefix_links SET hits = hits +1 WHERE id = ".$lid);
$row = db_fetch_assoc(db_query("SELECT link FROM prefix_links WHERE id = ".$lid));
header('location: '.$row['link']);
break;
}
# # # # # # # # # # # # # # # # # # #
# Links
# link eintraege speichern oder aendern.
if ( !empty($_POST['submit'])) {
$_POST['cat'] = escape($_POST['cat'], 'integer');
$_POST['name'] = escape($_POST['name'], 'string');
$_POST['banner'] = escape($_POST['banner'], 'string');
$_POST['desc'] = escape($_POST['desc'], 'string');
$_POST['link'] = get_homepage(escape($_POST['link'], 'string'));
if ( empty ($_POST['pkey']) ) {
$pos = db_result(db_query("SELECT COUNT(*) FROM prefix_links WHERE cat = ".$_POST['cat']),0);
db_query("INSERT INTO prefix_links (cat,name,banner,`desc`,link,pos) VALUES ('".$_POST['cat']."','".$_POST['name']."','".$_POST['banner']."','".$_POST['desc']."','".$_POST['link']."','".$pos."')");
} else {
$alt_row = db_fetch_assoc(db_query("SELECT cat,pos FROM prefix_links WHERE id = ".$_POST['pkey']));
if ( $alt_row['cat'] <> $_POST['cat'] ) {
$pos = db_result(db_query("SELECT COUNT(*) FROM prefix_links WHERE cat = ".$_POST['cat']),0);
} else {
$pos = $alt_row['pos'];
}
db_query("UPDATE prefix_links SET cat = '".$_POST['cat']."',name = '".$_POST['name']."',pos = ".$pos.", banner = '".$_POST['banner']."',`desc` = '".$_POST['desc']."',link = '".$_POST['link']."' WHERE id = '".$_POST['pkey']."'");
if ( $alt_row['cat'] <> $_POST['cat'] ) {
db_query("UPDATE prefix_links SET pos = pos - 1 WHERE pos > ".$alt_row['pos']." AND cat = ".$alt_row['cat']);
}
}
$azk = $_POST['cat'];
}
?>