X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxorg.inc.php;h=9d9b5923dc006c3a8eae73dde12c70bf46ce614c;hb=9e1816c7666767755abbc24f6a0df290efff81b6;hp=8927abaf2a4bcb7ec607e1a504867e02c37eb59c;hpb=bec580ff2bb4e580e51cb852e07121fbdea6c5f2;p=platal.git diff --git a/include/xorg.inc.php b/include/xorg.inc.php index 8927aba..9d9b592 100644 --- a/include/xorg.inc.php +++ b/include/xorg.inc.php @@ -1,6 +1,6 @@ fetchOneCell(); - $globals->changeDynamicConfig(array('NbIns' => $cnt)); -} - -function update_NbValid() -{ - global $globals; - $res = XDB::query("SELECT COUNT(*) - FROM requests"); - $globals->changeDynamicConfig(array('NbValid' => $res->fetchOneCell())); -} - -function update_NbNotifs() -{ - require_once 'notifs.inc.php'; - $n = select_notifs(false, S::i('uid'), S::v('watch_last'), false); - $_SESSION['notifs'] = $n->numRows(); -} +require_once 'common.inc.php'; // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>