X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxorg.inc.php;h=9d9b5923dc006c3a8eae73dde12c70bf46ce614c;hb=9e1816c7666767755abbc24f6a0df290efff81b6;hp=d463f7d8e5af18cbcec4b38dddfc775f1d1ccb67;hpb=5144e5e33e736a08c3d3f8235330d3fb514520cd;p=platal.git diff --git a/include/xorg.inc.php b/include/xorg.inc.php index d463f7d..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: ?>