Location: PHPKode > scripts > Prioritexter > Constants.php
<?php
class Constants {

  function loadConstants() {

// DB constants
define("DB_PROJECT_NAME","prioritizer");

    
    // frequently-changing constnats
    define(DEBUG, 0);

    define(NULL,FALSE);

    define(CONFIG_FILE,"config.php");

    // installation-specific constants

    // for admin login session variable management:
    // minutes since last page load before logged out; default 20
    define(ADMIN_LOGIN_MINUTES, 60); 
    // minutes since last page load before warned; default 16
    define(ADMIN_LOGIN_WARN_MINUTES, 50);
    // max minutes until logged out; default 30
    define(ADMIN_LOGIN_MAX_MINUTES, 80);
    // extra time so that page can load before 
    define(ADMIN_LOGIN_GRACE_MINUTES, .01);

    // no reason to change these
    define("ERR_TITLE","Error");    
    define("MAX_INT",1000000000);
    define("MIN_INT",-1000000000);
    define("MAX_UPLOAD_FILE_BYTES",10000000);
    define("MAX_UPLOAD_FILE_MB",MIN_UPLOAD_FILE_BYTES / 1000000);

    // Formatting
    define("MENU_WIDTH",160);
    // NOTE: is this one used anymore?
    define("CONTENT_WIDTH",PAGE_WIDTH-MENU_WIDTH);
    define("DEFAULT_ITEM_WIDTH",CONTENT_WIDTH);
    define("PAGE_TITLE_STYLE","page_title");
    define("TEXTBOX_TITLE_DEFAULT_STYLE","item_title");
    define("TEXTBOX_CONTENT_DEFAULT_STYLE","item_content");
    define("ITEM_BOX_STYLE","item_box");
    define("MENU_BOX_STYLE","menu_box");
    define("PAGE_TITLE_BOX_STYLE","page_title_box");
    define("ITEM_INTERNAL_TABLE_PADDING",2);
    // NOte: unused
    define("SPACING_BETWEEN_MENU_AND_ITEMS",5);

    define("HOME_PAGE_FILENAME","homepage");
    define("PAGE_CGI_VAR_NAME","page");
    define("OLD_PAGE_CGI_VAR_NAME","oldpage");

    define("NEWLINE_PREFIX",1);
    define("NEWLINE_POSTFIX",2);


  }
  
  // NOTE not used in basic platform
  function loadConstantsFromDb() {
    global $db;

    $result = $db->simpleSelect("constants");
    
    while($myrow = mysql_fetch_array($result))
      define($myrow["constant_name"], $myrow["constant_value"]);      
  }
}
?>
Return current item: Prioritexter