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