include "common.php"; //check if loggedIn require_once ('../includes/functions.php'); loggedIn ( "index.php" ); $x = $_GET ['page']; if (! empty ( $_POST ['deleted_pdts'] )) { $r = $db->select ( "select id,image from pictures where id IN(" . $_POST ['deleted_pdts'] . ")" ); while ( $row = $db->get_row ( $r, 'MYSQL_BOTH' ) ) { unlink ( '../pictures/' . $row ['1'] ); $db->delete ( "delete from pictures where id=" . $row ['0'] ); } //$db->print_last_query(); header ( "location:pictures.php?page=$_GET[page]" ); exit (); } $limit = (! empty ( $_GET ['p'] )) ? $_GET ['p'] : '0,10'; ?>
if ($_SESSION ['position'] == "C.S.") echo ""; if ($_SESSION ['position'] == "Admin") echo ""; if ($_SESSION ['position'] == "Marketing") echo ""; if ($_SESSION ['position'] == "H.R.") echo ""; ?>include 'includes/header.php'; ?> | ||
include 'includes/left.php'; ?> | =$_GET ['page']?> |
|