<?php

include_once 'ressources/class.templates.inc';
$users = new usersMenus();
if (!$users->AsArticaMetaAdmin) {
    $tpl = new templates();
    echo FATAL_WARNING_SHOW_128("{ERROR_NO_PRIVS}");
    die;
}
if (isset($_GET["content-js"])) {
    content_js();
    exit;
}
if (isset($_GET["content-table"])) {
    content_table();
    exit;
}
if (isset($_GET["content-search"])) {
    content_search();
    exit;
}
if (isset($_GET["unlink-js"])) {
    unlink_js();
    exit;
}
if (isset($_POST["unlink"])) {
    unlink_perform();
    exit;
}
if (isset($_GET["search"])) {
    search();
Esempio n. 2
0
<?php
include_once('ressources/class.templates.inc');



$users=new usersMenus();
if(!$users->AsSystemAdministrator){
	$tpl=new templates();
	echo FATAL_WARNING_SHOW_128("{ERROR_NO_PRIVS}");die();

}

if(isset($_GET["content-js"])){content_js();exit;}
if(isset($_GET["content-table"])){content_table();exit;}
if(isset($_GET["content-search"])){content_search();exit;}

if(isset($_GET["unlink-js"])){unlink_js();exit;}
if(isset($_POST["unlink"])){unlink_perform();exit;}
if(isset($_GET["search"])){search();exit;}


page();

function content_js(){
	header("content-type: application/x-javascript");
	$tpl=new templates();
	$table="snapshots";
	$database="artica_snapshots";
	$page=CurrentPageName();
	$ID=$_GET["ID"];