Ejemplo n.º 1
0
    ini_set('display_errors', 1);
    ini_set('error_reporting', E_ALL);
}
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.artica.inc';
include_once 'ressources/class.mysql.inc';
include_once 'ressources/class.system.network.inc';
$usersmenus = new usersMenus();
if ($usersmenus->AsArticaAdministrator == false) {
    echo "alert('No privs');";
    die;
}
if (isset($_GET["manual-update"])) {
    manual_update();
    exit;
}
if (isset($_GET['TargetArticaUploaded'])) {
    upload_artica_perform();
    exit;
}
if (isset($_GET["file-uploader-demo1"])) {
    upload_artica_final();
    exit;
}
if (isset($_GET["uncompress"])) {
    uncompress();
    exit;
}
if (isset($_GET["remove"])) {
Ejemplo n.º 2
0
<?php
	if(isset($_GET["verbose"])){$GLOBALS["VERBOSE"]=true;ini_set('html_errors',0);ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);}
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.artica.inc');
	include_once('ressources/class.mysql.inc');
	include_once('ressources/class.system.network.inc');
	$usersmenus=new usersMenus();
	if($usersmenus->AsArticaAdministrator==false){echo "alert('No privs');";die();}

	
	if(isset($_GET["manual-update"])){manual_update();exit;}
	if( isset($_GET['TargetArticaUploaded']) ){upload_artica_perform();exit();}
	if(isset($_GET["file-uploader-demo1"])){upload_artica_final();exit;}
	if(isset($_GET["uncompress"])){uncompress();exit;}
	if(isset($_GET["remove"])){remove();exit;}
	
	
	js();
function js(){
	header("content-type: application/x-javascript");
	$tpl=new templates();
	$page=CurrentPageName();
	$title=$tpl->javascript_parse_text("{manual_update}");
	echo "YahooWinBrowse('700','$page?manual-update=yes','$title',true)";
	
}	
function manual_update(){
	$t=time();
	$page=CurrentPageName();