X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=philter%2Fphilter%2Finclude%2Fphilter.inc.php;h=3b89bff6f92f95c516ad199b4a3a1042e5e4da1e;hb=772509f32045e23e867b3520f04072301f040252;hp=74ef94d5a2d83aedfd171a97d7db63e220088634;hpb=b19786cae5cfa315f04cfbb7a9bef1c6471d4810;p=old-projects.git diff --git a/philter/philter/include/philter.inc.php b/philter/philter/include/philter.inc.php index 74ef94d..3b89bff 100644 --- a/philter/philter/include/philter.inc.php +++ b/philter/philter/include/philter.inc.php @@ -11,6 +11,7 @@ require_once("include/core.inc.php"); function i18n($_index) { global $philter; echo $philter->i18n($_index); } function _i18n($_index) { global $philter; return $philter->i18n($_index); } +function bd() { global $philter; return ($philter->is_advanced() ? 'tmp_' : ''); } /** Philter base configuration class * This is the base class of Philter. @@ -36,9 +37,9 @@ class Philter { $this->err = ""; } + function is_advanced() { return isset($_SESSION['philter_adv']); } function set_advanced() { $_SESSION['philter_adv'] = true; } function del_advanced() { unset($_SESSION['philter_adv']); } - function is_advanced() { return isset($_SESSION['philter_adv']); } /** returns the i18n string * @param $_index the index of the string