if (strlen($url) > 7) {
            mysql_query('insert into servers' . ' (name, url) values' . ' ("' . $url . '", "' . $url . '");');
        }
    }
    public static function menuLinksUnknown($url)
    {
        return self::activateLink($url) . self::blacklistLink($url) . self::deleteLink($url);
    }
    public static function menuLinksBlack($url)
    {
        return self::activateLink($url) . self::deleteLink($url);
    }
}
$localServer = new LocalServer();
if (isset($_POST['local_name'])) {
    if ($localServer->isEmpty()) {
        $localServer->setUp($_POST['local_name']);
        AdminServers::resetDb();
    } else {
        $localServer->update($_POST['local_name']);
    }
    AdminServers::reload();
}
if (isset($_GET['drop'])) {
    mysql_query('drop table servers;');
    Header('Location: admin.php');
    exit;
}
if (!$localServer->isEmpty()) {
    if (isset($_GET['edit_name'])) {
        AdminServers::$editName = true;
Beispiel #2
0
?>
</td><td><a href="admin_categories.php">verwalten</a></td></tr>
<?php 
if ($searches->areActivated()) {
    ?>
<tr><td>Gespeicherte Suchen</td><td><?php 
    echo $numberOfSearches;
    ?>
</td><td><a href="admin_notification.php?deactivate=1">alle löschen</a></td></tr>
<?php 
} else {
    ?>
<tr><td colspan="3"><a href="admin_notification.php?activate=1">Suchbenachrichtigungen aktivieren</a></td></tr>
<?php 
}
if ($serverName->isEmpty()) {
    ?>
<tr><td colspan="3"><a href="admin_servers.php">Suche an anderen Standorten aktivieren</a></td></tr>
<?php 
} else {
    ?>
<tr><td>Bekannte Standorte</td><td><?php 
    echo $numberOfServers;
    ?>
</td><td><a href="admin_servers.php">einsehen</a></td></tr>
<?php 
}
?>
<tr><td colspan="3"><a href="admin_mail.php">E-Mail an alle Mailadressen versenden</a></td></tr>
</table>