XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
defines.php
Go to the documentation of this file.
1 <?php
19 defined('XOOPS_ROOT_PATH') or die('Restricted access');
20 
24 define('XOOPS_SIDEBLOCK_LEFT', 0);
25 define('XOOPS_SIDEBLOCK_RIGHT', 1);
26 define('XOOPS_SIDEBLOCK_BOTH', 2);
30 define('XOOPS_CENTERBLOCK_ALL', 6);
34 define('XOOPS_BLOCK_INVISIBLE', 0);
35 define('XOOPS_BLOCK_VISIBLE', 1);
36 define('XOOPS_MATCH_START', 0);
37 define('XOOPS_MATCH_END', 1);
38 define('XOOPS_MATCH_EQUAL', 2);
39 define('XOOPS_MATCH_CONTAIN', 3);
40 // YOU SHOULD AVOID USING THE FOLLOWING CONSTANTS, THEY WILL BE REMOVED
41 define('XOOPS_THEME_PATH', XOOPS_ROOT_PATH . '/themes');
42 define('XOOPS_ADMINTHEME_PATH', XOOPS_ROOT_PATH . '/modules/system/themes');
43 define('XOOPS_UPLOAD_PATH', XOOPS_ROOT_PATH . '/uploads');
44 define('XOOPS_LIBRARY_PATH', XOOPS_ROOT_PATH . '/libraries');
45 define('XOOPS_THEME_URL', XOOPS_URL . '/themes');
46 define('XOOPS_ADMINTHEME_URL', XOOPS_URL . '/modules/system/themes');
47 define('XOOPS_UPLOAD_URL', XOOPS_URL . '/uploads');
48 define('XOOPS_LIBRARY_URL', XOOPS_URL . '/libraries');
49 
50 // ----- BEGIN: Deprecated, move to template class -----
51 // define('SMARTY_DIR', XOOPS_ROOT_PATH . '/class/smarty/');
52 define('XOOPS_COMPILE_PATH', XOOPS_VAR_PATH . '/caches/smarty_compile');
53 define('XOOPS_CACHE_PATH', XOOPS_VAR_PATH . '/caches/xoops_cache');
54 // ----- END: Deprecated, move to template class -----
55 
56 if (!defined('XOOPS_XMLRPC')) {
57  define('XOOPS_DB_CHKREF', 1);
58 } else {
59  define('XOOPS_DB_CHKREF', 0);
60 }
61 
65 // if ( !defined( 'XOOPS_USE_MULTIBYTES' ) ) {
66 // define('XOOPS_USE_MULTIBYTES', 0 );
67 // }
68 
69 // IT IS A WRONG PLACE FOR THE FOLLOWING CONSTANTS
70 /*
71  * Some language definitions that cannot be translated
72  */
73 define('_XOOPS_FATAL_MESSAGE', "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
74 <html xmlns='http://www.w3.org/1999/xhtml'>
75 <head>
76 <meta http-equiv='Content-Type' content='text/html; charset=utf-8;charset=utf-8' />
77 <title>Internal server error</title>
78 <style type='text/css'>
79 * { margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif;}
80 body {font-size: 12px; background-color: #f0f0f0; text-align: center;}
81 #xo-siteblocked {
82  border: 1px solid #c0c4c0;
83  width: 375px;
84  height: 318px;
85  margin: 150px auto;
86  text-align: center;
87  background-color: #fff;
88  background-image: url(images/img_errors.png);
89  background-repeat: no-repeat;
90  background-position: 30px 50px;
91  padding-left: 300px;
92  padding-right: 30px;
93  border-radius: 15px;
94  -moz-border-radius: 15px;
95  -webkit-border-radius: 15px;
96 }
97  #xo-siteblocked h1 {font-size: 1.7em; margin: 45px 0 30px 0;}
98  #xo-siteblocked h2 {font-size: 1.5em; margin: 0 0 30px 0;}
99  #xo-siteblocked h1, h2 {font-weight: normal; text-shadow: 1px 1px 2px #ccc;}
100  #xo-siteblocked a, #xo-siteblocked a:visited {color: #2cb0ff; text-decoration: none;}
101  #xo-siteblocked p { font-size: 1.3em; margin-top: 12px; line-height: 2em;}
102  #xo-siteblocked p.xo-siteblocked-message { height: 70px;}
103  #xo-siteblocked p.xo-siteblocked-desc { font-size: .9em; font-style: italic; margin-top: 25px;}
104 </style>
105 </head>
106 <body>
107  <div id='xo-siteblocked'>
108  <h1>A problem has occurred on our server!</h1>
109  <h2>Page is currently unavailable</h2>
110  <p class='xo-siteblocked-message'>We are working on a fix<br /><a href='/'>Please come back soon ...</a></p>
111  <p class='xo-siteblocked-desc'>Error : %s</p>
112  </div>
113 </body>
114 </html>"
115 );
116 
117 define('_XOOPS_FATAL_BACKTRACE', "Backtrace");
118 
119 ?>