includes/common.php
changeset 592 27377179fe58
parent 590 03a60844c7c5
child 593 4f9bec0d65c1
equal deleted inserted replaced
591:2529833a7731 592:27377179fe58
   136 require_once(ENANO_ROOT.'/includes/paths.php');
   136 require_once(ENANO_ROOT.'/includes/paths.php');
   137 require_once(ENANO_ROOT.'/includes/sessions.php');
   137 require_once(ENANO_ROOT.'/includes/sessions.php');
   138 require_once(ENANO_ROOT.'/includes/template.php');
   138 require_once(ENANO_ROOT.'/includes/template.php');
   139 require_once(ENANO_ROOT.'/includes/plugins.php');
   139 require_once(ENANO_ROOT.'/includes/plugins.php');
   140 require_once(ENANO_ROOT.'/includes/lang.php');
   140 require_once(ENANO_ROOT.'/includes/lang.php');
   141 require_once(ENANO_ROOT.'/includes/comment.php');
       
   142 require_once(ENANO_ROOT.'/includes/wikiformat.php');
       
   143 require_once(ENANO_ROOT.'/includes/diff.php');
       
   144 require_once(ENANO_ROOT.'/includes/render.php');
   141 require_once(ENANO_ROOT.'/includes/render.php');
   145 require_once(ENANO_ROOT.'/includes/stats.php');
       
   146 require_once(ENANO_ROOT.'/includes/pageutils.php');
       
   147 require_once(ENANO_ROOT.'/includes/js-compressor.php');
       
   148 require_once(ENANO_ROOT.'/includes/rijndael.php');
   142 require_once(ENANO_ROOT.'/includes/rijndael.php');
   149 require_once(ENANO_ROOT.'/includes/email.php');
   143 require_once(ENANO_ROOT.'/includes/email.php');
   150 require_once(ENANO_ROOT.'/includes/search.php');
       
   151 require_once(ENANO_ROOT.'/includes/json.php');
       
   152 require_once(ENANO_ROOT.'/includes/json2.php');
   144 require_once(ENANO_ROOT.'/includes/json2.php');
   153 require_once(ENANO_ROOT.'/includes/math.php');
       
   154 require_once(ENANO_ROOT.'/includes/wikiengine/Tables.php');
       
   155 require_once(ENANO_ROOT.'/includes/pageprocess.php');
   145 require_once(ENANO_ROOT.'/includes/pageprocess.php');
   156 require_once(ENANO_ROOT.'/includes/tagcloud.php');
   146 require_once(ENANO_ROOT.'/includes/tagcloud.php');
   157 
   147 
   158 strip_magic_quotes_gpc();
   148 strip_magic_quotes_gpc();
   159 
   149 
   195   grinding_halt('Cannot get hostname', '<p>Your web browser did not provide the HTTP Host: field. This site requires a modern browser that supports the HTTP 1.1 standard.</p>');
   185   grinding_halt('Cannot get hostname', '<p>Your web browser did not provide the HTTP Host: field. This site requires a modern browser that supports the HTTP 1.1 standard.</p>');
   196 
   186 
   197 //
   187 //
   198 // END BACKGROUND AND ENVIRONMENT CHECKS
   188 // END BACKGROUND AND ENVIRONMENT CHECKS
   199 //
   189 //
       
   190 
       
   191 profiler_log('Background/environment checks done');
   200 
   192 
   201 //
   193 //
   202 // MAIN API INITIALIZATION
   194 // MAIN API INITIALIZATION
   203 //
   195 //
   204 
   196 
   306     grinding_halt('No languages', '<p>There are no languages installed on this site.</p>
   298     grinding_halt('No languages', '<p>There are no languages installed on this site.</p>
   307         <p>If you are the website administrator, you may install a language by writing and executing a simple PHP script to install it:</p>
   299         <p>If you are the website administrator, you may install a language by writing and executing a simple PHP script to install it:</p>
   308         <pre>
   300         <pre>
   309 &lt;?php
   301 &lt;?php
   310 define("ENANO_ALLOW_LOAD_NOLANG", 1);
   302 define("ENANO_ALLOW_LOAD_NOLANG", 1);
   311 $_GET["title"] = "langinstall";
       
   312 require("includes/common.php");
   303 require("includes/common.php");
   313 install_language("eng", "English", "English", ENANO_ROOT . "/language/english/enano.json");</pre>');
   304 install_language("eng", "English", "English", ENANO_ROOT . "/language/english/enano.json");</pre>');
   314   }
   305   }
   315   $row = $db->fetchrow();
   306   $row = $db->fetchrow();
   316   setConfig('default_language', $row['lang_id']);
   307   setConfig('default_language', $row['lang_id']);