8 require_once(CH_DIRECTORY_PATH_CLASSES .
"ChWsbInstaller.php");
12 return preg_match (
'/\/[a-z]+_[a-z]+$/',
$s);
20 $this->_aActions = array_merge($this->_aActions, array(
21 'check_requirements' => array(
22 'title' =>
'Check Orca Forum requrements',
29 $ret = parent::uninstall($aParams);
31 $sPath = CH_DIRECTORY_PATH_MODULES .
'cheetah/forum/';
33 $a = $this->
_read_in_dir (
"{$sPath}cachejs/",
'is_file');
34 array_walk($a, array($this,
'_unlink'));
37 array_walk($a, array($this,
'_rmdir_rf'));
40 array_walk($a, array($this,
'_unlink'));
43 array_walk($a, array($this,
'_rmdir_rf'));
46 array_walk($a, array($this,
'_unlink'));
48 $a = $this->
_read_in_dir (
"{$sPath}layout/",
'is_compiled_template');
49 array_walk($a, array($this,
'_rmdir_rf'));
57 if ($h = opendir($sDir)) {
58 while (
false !== (
$sFile = readdir($h))) {
60 $aRet[] = $sDir.$sFile;
70 if ($dirHandle = opendir($dirname)) {
72 while ($file = readdir($dirHandle)) {
73 if ($file ==
'.' || $file ==
'..')
continue;
74 if (is_dir($file)) $this->
_rmdir_rf($file);
91 if (((
int)phpversion()) >= 5) {
92 $iErrors += (class_exists(
'XsltProcessor')) ? 0 : 1;
94 $iErrors += (function_exists(
'domxml_xslt_stylesheet_file')) ? 0 : 1;
95 $iErrors += (function_exists(
'xslt_create')) ? 0 : 1;
103 <div style="border:1px solid red; padding:10px;">
105 Orca requres PHP XSLT extension. Please enable it first then proceed with installation.
109 For <u>PHP4</u>, make sure that PHP is compiled with the following extensions:
111 --with-dom --enable-xslt --with-xslt-sablot
113 If these PHP extensions are enabled, then you can see <u>domxml</u> and <u>xslt</u> extensions in phpinfo() with the following options:
116 XSLT support: enabled
121 For <u>PHP5</u>, make sure that PHP is compiled with the following extension:
125 If this PHP extension is enabled, then you can see <u>xslt</u> extensions in phpinfo() with the following option:
127 XSLT support: enabled