示例#1
0
 public static function Logout()
 {
     QFileFormStateHandler::DeleteFormStateForSession();
     unset($_SESSION['intUserAccountId']);
     session_destroy();
     QApplication::Redirect('../login.php');
 }
示例#2
0
文件: QForm.class.php 项目: alcf/chms
     * on the HTML page, then you need to add "foo.js" to this IgnoreJavaScriptFileArray so that Qcodo
     * doesn't try and also load "foo.js" for you. 
     * 
     * NOTE: In production or as a performance tweak, you may want to use the compressed "_qc_packed.js"
     * library (which is a compressed, single file version of ALL the qcodo .js files that is in _core).
     * 
     * If you want to do this, MAKE SURE you FIRST MANUALLY do a <script> inclusion of
     * "/assets/js/_core/_qc_packed.js" in your HTML.  Then, you can specify that QForm "ignore" all the
     * other qcodo _core javascripts by adding just "_core" to the array.
     *
     * @var array
     */
    //		protected $strIgnoreJavaScriptFileArray = array();
    protected $strIgnoreJavaScriptFileArray = array('_core');
    /**
     * This should be very rarely used.
     * 
     * This mechanism acts similarly to the strIgnoreJavascriptFileArray, except it applies to StyleSheets.
     * However, any QControl that specifies a StyleSheet file to include is MEANT to have that property be modified / customized.
     * 
     * Therefore, there should be little to no need for this attribute.  However, it is here anyway, just in case.
     *
     * @var array
     */
    protected $strIgnoreStyleSheetFileArray = array();
}
// For NOAH in Production, let's use FileFormStateHandler
if (array_key_exists('HTTP_HOST', $_SERVER) && strpos($_SERVER['HTTP_HOST'], 'noah') !== false) {
    QForm::$FormStateHandler = 'QFileFormStateHandler';
    QFileFormStateHandler::$GarbageCollectDaysOld = 1;
}