Location: PHPKode > scripts > DX0 > dx0/dx0/dx0vars.inc
<?
   //
   // dx0vars.inc - setup and global variables
   //   -- ideally you shouldn't have to touch the other files
   //

   //
   // DX0 properties
   //
   $DX0_DIR = "/home/groups/dx0/htdocs/dx0-web/";		// dx0-web directory root path
   $DX0_WEB_DIR = "http://dx0.sourceforge.net/dx0-web/";       // dx0-web directory url
   $DX0_BASIC_JS = "js/dx0basic.js.php";  // Directory where dx0basic.js.php is accessible, relative to DX0_WEB_DIR 
   $DX0_SUPPRESS_ERRORS = 0;  // fatal errors will print to the screen if 0
   $DX0_AUTO_ONLOAD = 1;      // assigns dx0setup() to window.onload, so you don't have to
   $DX0_MOUSE_XY = 1;         // captures x,y mouse coordinates in JavaScript
   $DX0_LAYER_SUPPORT = 0;    // I encourage you not to use layers, but you certainly can..
   $DX0_INLINE_STYLES = 0;    // This is pretty arbitrary.  Either have positioning in a style sheet at the
                              // top or in the DIV tag itself.  Not entirely NS debugged.
   $DX0_DEBUG = 0;            // Echo DX0 debugging stuff
   $DX0 = 'This site uses DX0 v1.0 // <A HREF="http://930.bored.org/dx0">Click Here for Info</A>';
   $DX0_VERSION_NUMBER = '1.0';

   //
   // Sniff specifically
   //
   if (strlen( $GLOBALS['HTTP_USER_AGENT'] ) < 1 ) if ( is_array( $GLOBALS['HTTP_SERVER_VARS'] ) ) $GLOBALS['HTTP_USER_AGENT'] = $GLOBALS['HTTP_SERVER_VARS']['HTTP_USER_AGENT'];
   if (strlen( $GLOBALS['HTTP_USER_AGENT'] ) < 1 ) $GLOBALS['HTTP_USER_AGENT'] = getenv("HTTP_USER_AGENT");
   $DX0_IE4 = strstr($GLOBALS['HTTP_USER_AGENT'],"MSIE 4");
   $DX0_IE5 = strstr($GLOBALS['HTTP_USER_AGENT'],"MSIE 5");
   $DX0_OP4 = strstr($GLOBALS['HTTP_USER_AGENT'],"Opera 4");
   $DX0_NS4 = strstr($GLOBALS['HTTP_USER_AGENT'],"Mozilla/4");
   if ($DX0_OP4 || $DX0_IE4 || $DX0_IE5) $DX0_NS4 = "";
   $DX0_NS6 = strstr($GLOBALS['HTTP_USER_AGENT'],"Mozilla/5");

   //
   // Break into categories: non-DHTML/DHTML, IE4+/DOM
   //   -- when IE6, Opera, further Browsers come in, then we can
   //      just add them to the categories, or make new categories.
   //
   $DX0_DHTML = 0;
   if ($DX0_IE4 || $DX0_IE5 || $DX0_NS4 || $DX0_NS6 || $DX0_OP4) $DX0_DHTML = 1;
   $DX0_IE4UP = ($DX0_IE4 || $DX0_IE5) ? 1 : 0;
   $DX0_NS6 = ($DX0_OP4 || $DX0_NS6) ? 1 : 0;
   $DX0_DOM = ($DX0_OP4 || $DX0_NS6) ? 1 : 0;
   $DX0_BROWSER_IDENT = "Unknown";
   if ($DX0_IE4) $DX0_BROWSER_IDENT = "Microsoft Internet Explorer 4.x";
   if ($DX0_IE5) $DX0_BROWSER_IDENT = "Microsoft Internet Explorer 5.x";
   if ($DX0_NS4) $DX0_BROWSER_IDENT = "Netscape 4.x";
   if ($DX0_NS6) $DX0_BROWSER_IDENT = "Mozilla/Netscape 6.x";
?>
Return current item: DX0