public function __construct() { $this->db = services('database'); $sql = "SELECT * FROM {{posts}} ORDER BY date_add DESC"; $sth = $this->db->query($sql); while ($row = $sth->fetch()) { $this->add($row); } }
} include_once dirname(__FILE__) . '/ressources/class.templates.inc'; include_once dirname(__FILE__) . '/ressources/class.mysql.inc'; include_once dirname(__FILE__) . '/ressources/class.status.inc'; include_once dirname(__FILE__) . '/ressources/class.os.system.inc'; include_once dirname(__FILE__) . '/ressources/class.system.network.inc'; include_once dirname(__FILE__) . '/framework/class.unix.inc'; include_once dirname(__FILE__) . "/framework/frame.class.inc"; if (preg_match("#--verbose#", implode(" ", $argv))) { $GLOBALS["VERBOSE"] = true; } if ($argv[1] == '--force') { $_GET["FORCE_EXECUTION"] = true; } if ($argv[1] == '--services') { services(); die; } if ($argv[1] == '--versions') { versions(); die; } if (!Build_pid_func(__FILE__, "MAIN")) { events("Already executed.. aborting the process"); error_log(basename(__FILE__) . " Already executed.. aborting the process"); BuildingExecRightStatus("Already executed.. aborting the process", 100); die; } if (systemMaxOverloaded()) { writelogs("This system is too many overloaded, die()", __FUNCTION__, __FILE__, __LINE__); die;
include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); if(posix_getuid()==0){die();} $user=new usersMenus(); if($user->AsVirtualBoxManager==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["services"])){services();exit;} if(isset($_GET["windows_manager"])){windows_drivers();exit;} if(isset($_GET["utilities"])){utilities_drivers();exit;} if(isset($_GET["sound"])){sound_drivers();exit;} if(isset($_GET["storage"])){storage_module();exit;} if(isset($_GET["module"])){save_module();exit;} if(isset($_GET["package"])){save_package();exit;} js();
<param name=movie value="images-news/groupe<?php echo "{$groupe}"; ?> .swf"> <param name=quality value=high> <embed src="images-news/groupe<?php echo "{$groupe}"; ?> .swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="315" height="30"> </embed> </object></td> </tr><tr><td> <table width=620> <tr> <?php services($service); ?> </tr> </table> </td></tr> <tr> <td height="10"> <b><?php $reqser = "select intitule_ser from services where id_service='{$service}'"; $resultser = DatabaseOperation::query($reqser); $intservice = mysql_result($resultser, 0, intitule_ser); echo "<li> {$intservice}</li>"; ?> </b> </td> </tr> <tr> <td height="328" valign="top"><!-- #BeginLibraryItem "/Library/news_developp.lbi" -->
public function __construct() { $this->db = services('database'); }
<?php session_start(); require '../controller/define.php'; require '../controller/adminControl.php'; if (!isset($_SESSION['admin'])) { header('Location: ' . SERVER . '/404'); } else { $serv = services(); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="description" content="Neon Admin Panel" /> <meta name="author" content="" /> <?php require_once '../includes/head.php'; ?> <link rel="stylesheet" href="assets/js/jquery-ui/css/no-theme/jquery-ui-1.10.3.custom.min.css"> <link rel="stylesheet" href="assets/css/font-icons/entypo/css/entypo.css"> <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Noto+Sans:400,700,400italic"> <link rel="stylesheet" href="assets/css/bootstrap.css"> <link rel="stylesheet" href="assets/css/neon-core.css">
if(systemMaxOverloaded()){ writelogs("This system is too many overloaded, die()",__FUNCTION__,__FILE__,__LINE__); if(!$GLOBALS["FORCE"]){die();} } if($GLOBALS["VERBOSE"]){ writelogs(basename(__FILE__).":Executed",basename(__FILE__),__FILE__,__LINE__); } if($argv[1]=="--setup-center"){setup_center();die();} if($argv[1]=="--services"){services();die();} if($argv[1]=="--mysql"){test_mysql();die();} if($argv[1]=="--monit"){test_monit();die();} if($argv[1]=='--force'){$_GET["FORCE"]=true;} if(!$_GET["FORCE"]){ if(system_is_overloaded()){die();} if(!Build_pid_func(__FILE__,"MAIN")){ if(!is_file("/usr/share/artica-postfix/ressources/logs/status.right.1.html")){status_right();} writelogs(basename(__FILE__).":Already executed.. aborting the process",basename(__FILE__),__FILE__,__LINE__); die(); } } if($argv[1]=='--setup'){ setup_center();
if (!isset($_SESSION)) { session_start(); } //si on vient d'une liste => calendrier des éléments listés if (isset($_SESSION['liste'])) { //recup liste à mettre ds calendrier $liste = $_SESSION['liste']; //initialise tableau evenements $eventlist = array(); $titre = $_SESSION['titre']; //recup events pr calendrier $events = creerEvents($liste, $titre); } else { //recup l'utilisateur loggé et ses groupes pr requete $utilisateur = $_SESSION['maint_login']; $services = services($utilisateur); //------------ INTERVENTIONS -------------------------------- //recup liste inter à mettre ds calendrier (du service de user) $listeInter = array(); $listall = listeInter(); foreach ($listall as $inter) { //recup interlocuteur de l'inter $interloc = utf8_encode(trim($inter['interlocuteur'])); foreach ($services as $serv) { if ($interloc == $serv and $inter['supp'] == 0) { $listeInter[] = $inter; } } } //ajout à events pr calendrier if (count($listeInter) > 0) {