<div class="collection result"> <h5> Supprimer la base de données</h5> <?php $dbname = $_GET['db-name']; if (isset($_GET['confirm'])) { if (remove_db($connection, $dbname)) { echo "<h5>La base " . $dbname . " a bien été supprimée</h5>"; echo "<p> Redirection ... </p>"; ?> <meta http-equiv="refresh" content="2; url=index.php" /> <div class="preloader-wrapper active"> <div class="spinner-layer spinner-red-only"> <div class="circle-clipper left"> <div class="circle"></div> </div><div class="gap-patch"> <div class="circle"></div> </div><div class="circle-clipper right"> <div class="circle"></div> </div> </div> </div> <?php } else { echo "<h5>la base " . $dbname . " n'a pas pu être supprimée</h5>"; } } else { ?> <p>Voulez-vous vraiment supprimer cette base de donnée : <?php echo $dbname; ?> ?</p>
print '<form name="form" method="post" action="links.php?delete=1"> <div class="title">Removing links</div><br /> <table> <tr> <td align="right">Links:</td> <td>' . $links . '</td> </tr> <tr> <td></td> <td><input class="tbox" name="submit" type="submit" value="Remove link" /></td> </table> </form>'; print $footer; exit; } if (isset($_REQUEST['delete'])) { $username = $_SESSION['identity']; $id = $_REQUEST['link']; $query = "DELETE FROM {$table_links} WHERE id = '{$id}' and owner = '{$username}'"; print $header; print "removal of link " . remove_db($query) . "<br />"; print $footer; exit; } print $header; print '<div class="title">Link management</div><br /> <ul> <li><a href="links.php?add=1">add a link</a></li> <li><a href="links.php?remove=1">remove a link</a></li> </ul>'; print $footer;
die; } if ($argv[1] == "--InfluxDbSize") { $GLOBALS["OUTPUT"] = true; InfluxDbSize(); $GLOBALS["DEBUG_INFLUX"] = true; die; } if ($argv[1] == "--install") { $GLOBALS["OUTPUT"] = true; install(); die; } if ($argv[1] == "--remove-db") { $GLOBALS["OUTPUT"] = true; remove_db(); die; } if ($argv[1] == "--install-progress") { $GLOBALS["OUTPUT"] = true; $GLOBALS["PROGRESS"] = true; install(); die; } function restart() { $unix = new unix(); $pidfile = "/etc/artica-postfix/pids/" . basename(__FILE__) . "." . __FUNCTION__ . ".pid"; $pid = $unix->get_pid_from_file($pidfile); if ($unix->process_exists($pid, basename(__FILE__))) { $time = $unix->PROCCESS_TIME_MIN($pid);
<?php $admin_area = TRUE; $dir_path = "../"; require "../config.php"; require "../functions/db.php"; require "../functions/authentication.php"; require "../functions/textparse.php"; if ($_SESSION['rank'] != 0) { die("you are not authorized to view this page"); } if (isset($_REQUEST['removing'])) { $username = $_REQUEST['username']; $query = "DELETE FROM {$table_admins} WHERE username='******' LIMIT 1"; print $header; print "removal of user was " . remove_db($query) . "<br />"; print $footer; exit; } if (isset($_REQUEST['remove'])) { print $header; print '<div align="center">are you sure you wish to remove the specified user [ ' . $_REQUEST['removeuser'] . ' ] ? <br /><br /><br /> <b><a href="users.php?removing=1&username='******'removeuser'] . '">yes</a> / <a href="users.php">no</a></b></div><br />'; print $footer; exit; } if (isset($_REQUEST['adding'])) { $username = $_REQUEST['username']; $password = md5($_REQUEST['password']); if (empty($rank)) {