This class handles the setup / installation process.
More...
|
| __construct () |
| installer constructor. build and return the html head More...
|
|
| __destruct () |
| Call the footer and end the html body and file. More...
|
|
| checkModRewrite () |
| Check if mod_rewrite is available. More...
|
|
| checkPhpVersion () |
| Check if php version is bigger than required. More...
|
|
| checkServerRequirements () |
| check server requirements and set object params More...
|
|
| checkZlib () |
| Check if zlib is available. More...
|
|
| footer () |
| Draw the installer's footer with links to yawk.io and github. More...
|
|
| getLanguageSelectOptions ($language, $lang) |
|
| init () |
| Initialize the installer. More...
|
|
| resetInstallation ($language, $lang) |
| RESET - RESET DATABASE xor CORRUPT INSTALLATION. More...
|
|
| setup ($language, $lang) |
| Start the setup process. More...
|
|
| step1 ($language, array $lang) |
| step 1 - SELECT LANGUAGE More...
|
|
| step2 (array $setup, $language, array $lang) |
| step 2 - DB DATA + SERVER REQUIREMENTS More...
|
|
| step3 (array $setup, $language, array $lang) |
| step 3 - write db-config, check + import db connection If all went good, a form with project settings gets drawn. More...
|
|
| step4 (array $setup, $language, array $lang) |
| step 4 - save project settings and draw a form to enter user data (email, name, password...) More...
|
|
| step5 (array $setup, $language, array $lang) |
| step 5 - save data, write .htaccess files and redirect to backend login - FIN More...
|
|
| writeHtaccessFileToAdminFolder () |
| this function writes the .htaccess file to the admin/ folder More...
|
|
| writeHtaccessFileToRootFolder () |
|
This class handles the setup / installation process.
installer Class
Definition at line 8 of file installer.php.
◆ __construct()
YAWK\installer::__construct |
( |
| ) |
|
installer constructor. build and return the html head
- Author
- Daniel Retzl danie.nosp@m.lret.nosp@m.zl@gm.nosp@m.ail..nosp@m.com
- Copyright
- 2017 Daniel Retzl @license https://opensource.org/licenses/MIT
Definition at line 59 of file installer.php.
64 <meta charset="utf-8">
65 <meta http-equiv="X-UA-Compatible" content="IE=edge">
66 <title>SETUP YaWK | Yet another Web Kit</title>
67 <!-- Tell the browser to be responsive to screen width -->
68 <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
70 <link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
72 <link rel="stylesheet" href="system/engines/bootstrap4/css/bootstrap.min.css">
74 <link rel="stylesheet" href="system/engines/animateCSS/animate.min.css">
76 <link rel="stylesheet" href="system/engines/font-awesome/css/font-awesome.min.css">
78 <link rel="stylesheet" href="system/engines/AdminLTE/css/AdminLTE.min.css">
80 <script type="text/javascript" src="system/engines/jquery/jquery-3.6.4.min.js"></script>
81 <!-- jQuery validation plugin -->
82 <script type="text/javascript" src="system/engines/jquery/jquery.validate.min.js"></script>
83 <!-- popper.js used by bootstrap to help positioning the tooltips -->
84 <script type="text/javascript" src="system/engines/jquery/popper.min.js"></script>
86 <script src="system/engines/jquery/notify/bootstrap-notify.min.js"></script>
87 <!-- Bootstrap 4 JS -->
88 <script type="text/javascript" src="system/engines/bootstrap4/js/bootstrap.min.js"></script>
90 <script src="system/engines/pace/pace.min.js"></script>
91 <link rel="stylesheet" href="system/engines/pace/pace-minimal-installer.css">
92 <!-- custom YaWK setup css -->
93 <link rel="stylesheet" href="system/setup/setup.css">
96 <body style="background-color: #ebebeb; margin-top:50px;">
97 <div class="container animated fadeIn slow shadow-lg" style="background-color: #fff;">
98 <form method="POST" id="installerForm">
◆ __destruct()
YAWK\installer::__destruct |
( |
| ) |
|
Call the footer and end the html body and file.
Definition at line 1233 of file installer.php.
1241 $(document).ready(function() {
1243 $("[data-toggle=\'tooltip\']").tooltip();
footer()
Draw the installer's footer with links to yawk.io and github.
References YAWK\installer\footer().
◆ checkModRewrite()
YAWK\installer::checkModRewrite |
( |
| ) |
|
Check if mod_rewrite is available.
Note: this does not work on some restricted configured shared hosting providers.
- Returns
- bool
Definition at line 1181 of file installer.php.
1185 if(function_exists(
'apache_get_modules') && in_array(
'mod_rewrite',apache_get_modules()))
1187 $this->modRewriteStatus =
"true";
1191 else if (isset($_SERVER[
'IIS_UrlRewriteModule']))
1193 $this->modRewriteStatus =
"true";
1198 if (extension_loaded(
'mod_rewrite'))
1200 $this->modRewriteStatus =
"true";
1205 $this->modRewriteStatus =
"false";
Referenced by YAWK\installer\checkServerRequirements().
◆ checkPhpVersion()
YAWK\installer::checkPhpVersion |
( |
| ) |
|
◆ checkServerRequirements()
YAWK\installer::checkServerRequirements |
( |
| ) |
|
check server requirements and set object params
- Author
- Daniel Retzl danie.nosp@m.lret.nosp@m.zl@gm.nosp@m.ail..nosp@m.com @license https://opensource.org/licenses/MIT
Definition at line 1058 of file installer.php.
1067 if ($this->phpVersionStatus ===
"true")
1069 $this->serverRequirementCount++;
1070 $this->phpCheckIcon =
"<i class=\"fa fa-check text-success\"></i>";
1074 $this->phpCheckIcon =
"<i class=\"fa fa-times text-danger\"></i>";
1075 $this->serverRequirementCount = 0;
1079 if ($this->zlib ===
"true")
1081 $this->zlibCheckIcon =
"<i class=\"fa fa-check text-success\"></i>";
1082 $this->serverRequirementCount++;
1086 $this->zlibCheckIcon =
"<i class=\"fa fa-times text-danger\"></i>";
1090 if ($this->modRewriteStatus ===
"true")
1092 $this->modRewriteCheckIcon =
"<i class=\"fa fa-check text-success\"></i>";
1093 $this->serverRequirementCount++;
1097 $this->modRewriteCheckIcon =
"<i class=\"fa fa-times text-danger\"></i>";
1101 if ($this->serverRequirementCount == 0)
1103 $this->serverRequirements =
false;
1107 $this->serverRequirements =
true;
checkZlib()
Check if zlib is available.
checkPhpVersion()
Check if php version is bigger than required.
checkModRewrite()
Check if mod_rewrite is available.
References $i, YAWK\installer\checkModRewrite(), YAWK\installer\checkPhpVersion(), and YAWK\installer\checkZlib().
Referenced by YAWK\installer\setup().
◆ checkZlib()
YAWK\installer::checkZlib |
( |
| ) |
|
◆ footer()
YAWK\installer::footer |
( |
| ) |
|
Draw the installer's footer with links to yawk.io and github.
Definition at line 1214 of file installer.php.
1216 echo
"<footer class=\"animated fadeIn\" style=\"position: relative; bottom: -8em; width: 100%; height: auto; background-color: #ebebeb;\">
1217 <div class=\"container-fluid\">
1219 <div class=\"col-md-12 text-center small\">
1220 <h5 class=\"text-muted\"><small><a href=\"http://yawk.io\" title=\"Official YaWK Website\" target=\"_blank\"><b>Y</b>et <b>a</b>nother <b>W</b>eb<b>K</b>it</a> on <b>
1221 <a href=\"https://github.com/YaWK/yawk.io\" title=\"visit, fork or star YaWK on GitHub\" target=\"_blank\">GitHub</a></b></small>
1222 - <small>v $this->yawkVersion
Referenced by YAWK\installer\__destruct().
◆ getLanguageSelectOptions()
YAWK\installer::getLanguageSelectOptions |
( |
|
$language, |
|
|
|
$lang |
|
) |
| |
Check supported languages and build options for select field
- Author
- Daniel Retzl danie.nosp@m.lret.nosp@m.zl@gm.nosp@m.ail..nosp@m.com @license https://opensource.org/licenses/MIT
Definition at line 1115 of file installer.php.
1117 $selectOptions =
'';
1119 $selectOptions .=
"<option value=\"\">$lang[SELECT_LANGUAGE]</option>";
1120 foreach ($language->supportedLanguages AS $supported)
1122 $supportedLanguage = substr($supported, 0, 2);
1123 if ($language->currentLanguage ===
"$supportedLanguage")
1126 $selectOptions .=
"<option value=\"$supported\" selected>$supported</option>
1132 $selectOptions .=
"<option value=\"$supported\">$supported</option>
1136 return $selectOptions;
◆ init()
Initialize the installer.
check and set the current / supported language, check if install.ini exists and start setup process
- Author
- Daniel Retzl danie.nosp@m.lret.nosp@m.zl@gm.nosp@m.ail..nosp@m.com
- Copyright
- 2017 Daniel Retzl @license https://opensource.org/licenses/MIT
Definition at line 109 of file installer.php.
111 $_SESSION[
'SETUP'] = TRUE;
115 require_once (
'system/classes/language.php');
119 $language =
new language();
121 $language->defaultLanguage =
"en-EN";
123 $language->pathToFile =
"admin/language/";
126 if ($language->detectedLanguage = $language->getClientLanguage())
128 if ($language->isSupported($language->currentLanguageGlobal))
130 $language->currentLanguage = $language->currentLanguageGlobal;
131 $language->setLanguage($language->currentLanguageGlobal);
135 $language->setDefault($language->defaultLanguage);
139 if (isset($_POST[
'currentLanguage']) && (!empty($_POST[
'currentLanguage'])))
141 if ($language->isSupported($_POST[
'currentLanguage']))
143 $language->detectedLanguage = $_POST[
'currentLanguage'];
144 $language->setLanguage($language->detectedLanguage);
148 $language->currentLanguage = $language->defaultLanguage;
149 $language->setDefault($language->defaultLanguage);
153 $lang = (array) $language->lang;
158 if (file_exists($this->configFile) && (is_readable($this->configFile)))
166 if (file_exists($this->filePointer) || (file_exists($this->setupIndicator) && (empty($_POST)))) {
169 if (file_exists($this->dbConfigPhp) && (is_readable($this->dbConfigPhp))) {
175 die (
"$lang[INSTALLER_FIX_FAILED] $lang[INSTALLER_FIX_FAILED_SUBTEXT] $lang[MISSING_FILE] $this->dbConfigPhp $lang[INSTALLER_FIX_FAILED_EXPLAIN]");
187 die (
"$lang[INSTALLER_BROKEN] $lang[INSTALLER_BROKEN_SUBTEXT] $lang[MISSING_FILE] $this->configFile");
print $lang['FILEMAN_UPLOAD']
resetInstallation($language, $lang)
RESET - RESET DATABASE xor CORRUPT INSTALLATION.
setup($language, $lang)
Start the setup process.
References $lang, die, YAWK\installer\resetInstallation(), and YAWK\installer\setup().
◆ resetInstallation()
YAWK\installer::resetInstallation |
( |
|
$language, |
|
|
|
$lang |
|
) |
| |
◆ setup()
YAWK\installer::setup |
( |
|
$language, |
|
|
|
$lang |
|
) |
| |
Start the setup process.
include core functions and check server requirements. handles the installation steps
- Parameters
-
object | $language | language object |
array | $lang | language data array |
- Author
- Daniel Retzl danie.nosp@m.lret.nosp@m.zl@gm.nosp@m.ail..nosp@m.com
- Copyright
- 2017 Daniel Retzl @license https://opensource.org/licenses/MIT
Definition at line 200 of file installer.php.
204 require_once(
'system/classes/settings.php');
205 require_once(
'system/classes/alert.php');
206 require_once(
'system/classes/sys.php');
207 require_once(
'system/classes/user.php');
213 if ($setup = parse_ini_file($this->configFile, FALSE))
215 $this->yawkVersion = $setup[
'VERSION'];
216 if (is_file(
'system/update/system.ini'))
218 if ($system = parse_ini_file(
'system/update/system.ini', FALSE))
220 $this->yawkVersion = $system[
'currentVersion'];
224 if ($setup[
'INSTALL'] ===
"true")
226 if (empty($_POST[
'step']))
234 if (isset($_POST[
'step']) && $_POST[
'step'] ===
"1")
240 if (isset($_POST[
'step']) && $_POST[
'step'] ===
"2")
246 if (isset($_POST[
'step']) && $_POST[
'step'] ===
"3")
252 if (isset($_POST[
'step']) && ($_POST[
'step'] ===
"4"))
258 if (isset($_POST[
'step']) && ($_POST[
'step'] ===
"5"))
266 die (
"$lang[INSTALLER_BROKEN] $lang[INSTALLER_BROKEN_SUBTEXT] $lang[PARSE_ERROR] $this->configFile");
step4(array $setup, $language, array $lang)
step 4 - save project settings and draw a form to enter user data (email, name, password....
step2(array $setup, $language, array $lang)
step 2 - DB DATA + SERVER REQUIREMENTS
step3(array $setup, $language, array $lang)
step 3 - write db-config, check + import db connection If all went good, a form with project settings...
checkServerRequirements()
check server requirements and set object params
step1($language, array $lang)
step 1 - SELECT LANGUAGE
step5(array $setup, $language, array $lang)
step 5 - save data, write .htaccess files and redirect to backend login - FIN
References $lang, YAWK\installer\checkServerRequirements(), die, exit, YAWK\installer\step1(), YAWK\installer\step2(), YAWK\installer\step3(), YAWK\installer\step4(), and YAWK\installer\step5().
Referenced by YAWK\installer\init(), and YAWK\installer\resetInstallation().
◆ step1()
YAWK\installer::step1 |
( |
|
$language, |
|
|
array |
$lang |
|
) |
| |
step 1 - SELECT LANGUAGE
- Parameters
-
object | $language | language object |
array | $lang | language data array |
- Author
- Daniel Retzl danie.nosp@m.lret.nosp@m.zl@gm.nosp@m.ail..nosp@m.com @license https://opensource.org/licenses/MIT
Definition at line 321 of file installer.php.
324 echo
"<div class=\"row\">
325 <div class=\"col-md-2 text-justify\">
328 <div class=\"col-md-8\">
329 <h1 class=\"mt-5\">YaWK <small>$lang[INSTALLATION]</small></h1>
330 <h4><i class=\"fa fa-language\"></i> $lang[STEP] $_POST[step]/5 <small>$lang[PREPARATION]</small></h4>
332 <label for=\"currentLanguage\">$lang[LANG_LABEL]
333 <small><i class=\"fa fa-question-circle-o text-info\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"$lang[I_SUPPORTED_LANGUAGES]\"></i></small>
335 <select required class=\"form-control\" id=\"currentLanguage\" name=\"currentLanguage\">
336 ".$this->getLanguageSelectOptions($language,
$lang).
"
339 <button class=\"btn btn-success pull-right\" type=\"submit\" id=\"saveBtn\"><small>$_POST[step]/5</small> $lang[NEXT_STEP] <i class=\"fa fa-arrow-right\"></i></button>
340 <input type=\"hidden\" name=\"step\" value=\"2\">
343 <div class=\"col-md-2 text-justify\">
References $lang.
Referenced by YAWK\installer\setup().
◆ step2()
YAWK\installer::step2 |
( |
array |
$setup, |
|
|
|
$language, |
|
|
array |
$lang |
|
) |
| |
step 2 - DB DATA + SERVER REQUIREMENTS
- Parameters
-
array | $setup | installation settings |
object | $language | language object |
array | $lang | language data array |
- Author
- Daniel Retzl danie.nosp@m.lret.nosp@m.zl@gm.nosp@m.ail..nosp@m.com @license https://opensource.org/licenses/MIT
Definition at line 356 of file installer.php.
360 <!-- YaWK Setup Helper -->
361 <script src="system/setup/setupHelper.js"></script>';
362 echo
"<div class=\"row\">
363 <div class=\"col-md-7\">
364 <h1>YaWK <small>$lang[INSTALLATION]</small></h1>
365 <h4><i class=\"fa fa-database\"></i> $lang[STEP] $_POST[step]/5 <small>$lang[DATABASE]</small></h4>
367 <h4>$lang[MYSQL_DATA] <small><i class=\"fa fa-question-circle-o text-info\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"$lang[I_CREDENTIALS]\"></i></small></h4>
368 <label for=\"DB_HOST\">$lang[DB_HOST] <small><i>$lang[DB_HOST_SUBTEXT]</i></small>
369 <small><i class=\"fa fa-question-circle-o text-info\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"$lang[I_DBHOST]\"></i></small>
371 <input required type=\"text\" class=\"form-control\" name=\"DB_HOST\" id=\"DB_HOST\" placeholder=\"$setup[DB_HOST]\">
373 <label for=\"DB_NAME\">$lang[DB_NAME] <small><i>$lang[DB_NAME_SUBTEXT]</i></small>
374 <small><i class=\"fa fa-question-circle-o text-info\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"$lang[I_DBNAME]\"></i></small>
376 <input required type=\"text\" class=\"form-control\" name=\"DB_NAME\" id=\"DB_NAME\" placeholder=\"$setup[DB_NAME]\">
378 <label for=\"DB_USER\">$lang[DB_USER] <small><i>$lang[DB_USER_SUBTEXT]</i></small>
379 <small><i class=\"fa fa-question-circle-o text-info\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"$lang[I_DBUSER]\"></i></small>
381 <input required type=\"text\" class=\"form-control\" name=\"DB_USER\" id=\"DB_USER\" placeholder=\"$setup[DB_USER]\">
383 <label for=\"DB_PASS\">$lang[DB_PASS] <small><i>$lang[DB_PASS_SUBTEXT]</i></small>
384 <small><i class=\"fa fa-question-circle-o text-info\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"$lang[I_DBPASS]\"></i></small>
386 <input required type=\"password\" class=\"form-control\" name=\"DB_PASS\" id=\"DB_PASS\" placeholder=\"$setup[DB_PASS]\"><br>";
389 if ($this->serverRequirements ===
true)
391 echo
"<button type=\"submit\" name=\"save\" id=\"savebutton\" class=\"btn btn-success pull-right\"><small>$_POST[step]/5</small> $lang[CHECK_DB] <i id=\"savebuttonIcon\" class=\"fa fa-arrow-right\"></i></button>";
395 echo
"<button type=\"submit\" class=\"btn btn-warning pull-right\" disabled aria-disabled=\"true\"><small>$_POST[step]/5</small> $lang[CHECK_DB] <i class=\"fa fa-arrow-right\"></i></button>";
398 echo
"<br><h4 class=\"mt-5\">$lang[MYSQL_DATA_EXT]</h4>
400 <label for=\"DB_PREFIX\">$lang[DB_PREFIX] <small><i>$lang[DB_PREFIX_SUBTEXT]</i></small>
401 <small><i class=\"fa fa-question-circle-o text-info\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"$lang[I_DBPREFIX]\"></i></small>
403 <input required type=\"text\" class=\"form-control\" name=\"DB_PREFIX\" id=\"DB_PREFIX\" placeholder=\"$setup[DB_PREFIX]\" value=\"$setup[DB_PREFIX]\">
405 <label for=\"DB_PORT\">$lang[DB_PORT] <small><i>$lang[DB_PORT_SUBTEXT]</i></small>
406 <small><i class=\"fa fa-question-circle-o text-info\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"$lang[I_DBPORT]\"></i></small>
408 <input required type=\"text\" class=\"form-control\" name=\"DB_PORT\" id=\"DB_PORT\" placeholder=\"$setup[DB_PORT]\" value=\"$setup[DB_PORT]\">
410 <!-- <button type=\"button\" class=\"btn btn-default\" onClick=\"history.go(-1);return true;\"><i class=\"fa fa-arrow-left\"></i> back</button> -->
413 echo
"<input type=\"hidden\" name=\"step\" value=\"3\">
414 <input type=\"hidden\" name=\"currentLanguage\" value=\"$language->currentLanguage\">
415 <input type=\"hidden\" name=\"DB_CHECK_TO\" value=\"$lang[DB_CHECK_TO]\">
416 <input type=\"hidden\" name=\"DB_CHECK_EST\" value=\"$lang[DB_CHECK_EST]\">
417 <input type=\"hidden\" name=\"DB_CHECK_FAILED\" value=\"$lang[DB_CHECK_FAILED]\">
418 <input type=\"hidden\" name=\"DB_CHECK_DATA\" value=\"$lang[DB_CHECK_DATA]\">
419 <input type=\"hidden\" name=\"DB_IMPORT_MSG\" value=\"$lang[DB_IMPORT_MSG]\">
420 <input type=\"hidden\" name=\"DB_CHECK_AGAIN\" value=\"$lang[DB_CHECK_AGAIN]\">
421 <input type=\"hidden\" name=\"DB_IMPORT_BTN\" value=\"$lang[DB_IMPORT_BTN]\">
424 <div class=\"col-md-5 text-justify\">
427 <h4>$lang[INSTALL_NOTICE_HEADING]</h4>
428 $lang[INSTALL_NOTICE]
430 <h4>$lang[SYS_REQ]</h4>
431 <ul class=\"list-unstyled\">
432 <li>$this->apacheCheckIcon <b>Apache 2.x</b> $lang[OR] <b>nginx</b></li>
433 <li>$this->phpCheckIcon PHP $this->phpVersionRequired <small><i><small>($lang[USES]: ".phpversion().
")</small></i></small></li>
435 <ul class=\"list-unstyled small\">
436 <li> $this->zlibCheckIcon +mod_gzip <small><i>($lang[AVAILABLE]: ".$this->zlib.
") </i></small></li>
437 <li> $this->modRewriteCheckIcon +mod_rewrite <small><i>($lang[AVAILABLE]: ".$this->modRewriteStatus.
") </i></small></li>
441 if ($this->phpVersionStatus ==
"true")
443 echo
"<h4 class=\"text-success\" id=\"ajaxMessage\">$lang[SERVER_REQ_TRUE]</h4>";
445 if (is_writable(
'.htaccess')){
446 echo
"<span class=\"text-success\"><i class=\"fa fa-check\"></i> $lang[HTACCESS_ROOT_WRITABLE]</span><br>";
449 echo
"<span class=\"text-danger text-bold\"><i class=\"fa fa-exclamation-circle\"></i> $lang[HTACCESS_ROOT_NOT_WRITABLE] <small><i class=\"fa fa-question-circle-o text-info\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"$lang[I_HTACCESS_RIGHTS]\"></i></small></span><br>";
451 if (is_writable(
'admin/.htaccess')){
452 echo
"<span class=\"text-success\"><i class=\"fa fa-check\"></i> $lang[HTACCESS_ADMIN_WRITABLE]</span><br>";
455 echo
"<span class=\"text-danger text-bold\"><i class=\"fa fa-exclamation-triangle\"></i> $lang[HTACCESS_ADMIN_NOT_WRITABLE]</span><br>";
460 \YAWK\alert::draw(
"warning",
"$lang[SYS_REQ]",
"$lang[SERVER_REQ_FALSE]",
'',
'');
462 echo
"<br><h4>$lang[DATA_PACKAGES] <small><i class=\"fa fa-question-circle-o text-info\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"$lang[I_PACKAGES]\"></i></small></h4>
463 <input required type=\"checkbox\" id=\"installCoreData\" name=\"installCoreData\" checked disabled>
464 <label for=\"installCoreData\" style=\"font-weight: normal;\">$lang[YAWK_INSTALLATION_FILES] <small>($setup[VERSION])</small></label>
466 <input type=\"checkbox\" id=\"installSampleData\" name=\"installSampleData\" disabled>
467 <label for=\"installSampleData\" style=\"font-weight: normal;\">$lang[YAWK_EXAMPLE_FILES] <small><small><i>$lang[USERS_PAGES_MENUS]</i></small></small>
468 <small><i class=\"fa fa-question-circle-o text-info\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"$lang[I_PACKAGES_EXAMPLE]\"></i></small>
470 <br><br><b>$lang[DB_CHECK]</b><br><br><br><br><br><br></div> <!-- end col -->
471 </div> <!-- end row -->
static draw($type, $title, $text, $redirect, $delay)
References YAWK\alert\draw().
Referenced by YAWK\installer\setup(), and YAWK\installer\step3().
◆ step3()
YAWK\installer::step3 |
( |
array |
$setup, |
|
|
|
$language, |
|
|
array |
$lang |
|
) |
| |
step 3 - write db-config, check + import db connection If all went good, a form with project settings gets drawn.
- Parameters
-
array | $setup | installation settings |
object | $language | language object |
array | $lang | language data array |
- Exceptions
-
Definition at line 483 of file installer.php.
486 if (empty($_POST[
'DB_HOST'])
487 || (empty($_POST[
'DB_USER'])
488 || (empty($_POST[
'DB_NAME'])
489 || (empty($_POST[
'DB_PREFIX'])
490 || (empty($_POST[
'DB_PORT'])
493 if (isset($_POST[
'step']) && (!empty($_POST[
'step']))) { $_POST[
'step']--; }
495 \YAWK\alert::draw(
"danger",
"$lang[DB_ERROR]",
"$lang[DB_ERROR_MISSING_FIELDS]",
"", 5000);
507 \$this->config['server'] = \"".$_POST[
'DB_HOST'].
"\";
508 \$this->config['username'] = \"".$_POST[
'DB_USER'].
"\";
509 \$this->config['password'] = \"".$_POST[
'DB_PASS'].
"\";
510 \$this->config['dbname'] = \"".$_POST[
'DB_NAME'].
"\";
511 \$this->config['prefix'] = \"".$_POST[
'DB_PREFIX'].
"\";
512 \$this->config['port'] = \"".$_POST[
'DB_PORT'].
"\";
515 if (file_put_contents($this->dbConfigPhp,
$data))
519 require_once(
'system/classes/db.php');
520 $db = new \YAWK\db();
527 if ($status =
$db->import($this->sqlFile,
$lang))
529 unlink($this->filePointer);
532 if (!empty($this->yawkVersion)){
536 \YAWK\alert::draw(
"success",
"$lang[DB_IMPORT]",
"$lang[DB_IMPORT_OK]",
"", 2000);
539 touch($this->setupIndicator);
543 unlink($this->filePointer);
545 \YAWK\alert::draw(
"danger",
"$lang[DB_IMPORT]",
"$lang[DB_IMPORT_FAILED]",
"setup.php", 6000);
550 if (isset($_POST[
'step']) && (!empty($_POST[
'step']))) { $_POST[
'step']--; }
557 <div class=\"col-md-7 text-justify\">
558 <h1>YaWK <small>$lang[INSTALLATION]</small></h1>
559 <h4><i class=\"fa fa-pencil\"></i> $lang[STEP] $_POST[step]/5 <small>$lang[PROJECT_SETTINGS]</small></h4>
560 <hr><h4>$lang[COMMON_PROJECT_SETTINGS]</h4>
561 <label for=\"URL\">$lang[URL] <small><i>$lang[URL_SUBTEXT]</i></small>
562 <small><i class=\"fa fa-question-circle-o text-info\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"$lang[HOST_LABEL]\"></i></small>
564 <input required type=\"text\" class=\"form-control\" name=\"URL\" id=\"URL\" placeholder=\"$setup[URL]\">
565 <label for=\"TITLE\">$lang[TITLE] <small><i>$lang[INSTALLER_TITLE_SUBTEXT]</i></small>
566 <small><i class=\"fa fa-question-circle-o text-info\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"$lang[TITLE_LABEL]\"></i></small>
568 <input required type=\"text\" class=\"form-control\" name=\"TITLE\" id=\"TITLE\" placeholder=\"$lang[INSTALLER_TITLE]\">
569 <label for=\"DESC\">$lang[INSTALLER_DESC] <small><i>$lang[INSTALLER_DESC_SUBTEXT]</i></small>
570 <small><i class=\"fa fa-question-circle-o text-info\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"$lang[SHORT_DESCRIPTION_PH]\"></i></small>
572 <input required type=\"text\" class=\"form-control\" name=\"DESC\" id=\"DESC\" placeholder=\"$lang[INSTALLER_DESC_PLACEHOLDER]\">
574 <input type=\"hidden\" name=\"step\" value=\"4\">
575 <input type=\"hidden\" name=\"currentLanguage\" value=\"$language->currentLanguage\">
576 <button type=\"submit\" class=\"btn btn-success pull-right\"><small>$_POST[step]/5</small> $lang[NEXT_STEP] <i class=\"fa fa-arrow-right\"></i></button>
578 <label for=\"ROOT_PATH\">$lang[ROOT_PATH] <small><i>$lang[ROOT_PATH_SUBTEXT]</i></small>
579 <small><i class=\"fa fa-question-circle-o text-info\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"$lang[I_ROOT_PATH]\"></i></small>
581 <input type=\"text\" class=\"form-control\" name=\"ROOT_PATH\" id=\"ROOT_PATH\" value=\"$this->rootPath\" placeholder=\"$setup[ROOT_PATH]\">
583 <div class=\"col-md-5 text-justify\">
586 <h4>$lang[BASE_INFO]</h4>
587 $lang[INSTALL_NOTICE_BASE_INFO]
589 <b>$lang[STEP4]</b><br>
595 \YAWK\alert::draw(
"danger",
"$lang[DBCONFIG_WRITE_FAILED]",
"$lang[DBCONFIG_WRITE_FAILED]",
"",
"");
static setSetting($db, $property, $value, $lang)
Set value for property into settings database.
static getBaseDir()
Return current base directory.
References $data, $db, $lang, YAWK\alert\draw(), exit, YAWK\sys\getBaseDir(), YAWK\settings\setSetting(), and YAWK\installer\step2().
Referenced by YAWK\installer\setup().
◆ step4()
YAWK\installer::step4 |
( |
array |
$setup, |
|
|
|
$language, |
|
|
array |
$lang |
|
) |
| |
step 4 - save project settings and draw a form to enter user data (email, name, password...)
- Parameters
-
array | $setup | installation settings |
object | $language | language object |
array | $lang | language data array |
- Author
- Daniel Retzl danie.nosp@m.lret.nosp@m.zl@gm.nosp@m.ail..nosp@m.com @license https://opensource.org/licenses/MIT
Definition at line 609 of file installer.php.
612 <!-- YaWK Setup Helper -->
613 <script src="system/setup/validationHelper.js"></script>';
618 require_once(
'system/classes/db.php');
619 $db = new \YAWK\db();
622 if (isset($_POST[
'ROOT_PATH']) && (!empty($_POST[
'ROOT_PATH'])))
625 $this->rootPath = trim($_POST[
'ROOT_PATH']);
634 if (isset($_POST[
'URL']) && (!empty($_POST[
'URL'])))
637 if(filter_var($_POST[
'URL'], FILTER_VALIDATE_URL))
639 $this->url = trim($_POST[
'URL']);
641 $this->url = rtrim($this->url,
'/') .
'';
649 $this->url = trim($_POST[
'URL']);
651 $this->url = rtrim($this->url,
'/') .
'';
654 \YAWK\alert::draw(
"warning",
"$lang[FAULTY_URL]",
"$lang[FAULTY_URL_SUBTEXT]",
"", 5000);
658 if (isset($_POST[
'TITLE']) && (!empty($_POST[
'TITLE'])))
663 if (isset($_POST[
'DESC']) && (!empty($_POST[
'DESC'])))
668 if (isset($language->currentLanguage))
675 <div class=\"col-md-7 text-justify\">
676 <h1>YaWK <small>$lang[INSTALLATION]</small></h1>
677 <h4><i class=\"fa fa-user-circle-o\"></i> $lang[STEP] $_POST[step]/5 <small>$lang[ACCOUNT_SETTINGS]</small></h4>
678 <hr><h4>$lang[USER] $lang[SETTINGS]</h4>
679 <label for=\"EMAIL\">$lang[EMAIL] <small><i>$lang[EMAIL_SUBTEXT]</i></small>
680 <small><i class=\"fa fa-question-circle-o text-info\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"$lang[I_EMAIL]\"></i></small>
682 <input required type=\"text\" class=\"form-control\" name=\"EMAIL\" id=\"EMAIL\" placeholder=\"$setup[ADMIN_EMAIL]\">
683 <label for=\"USERNAME\">$lang[USERNAME] <small><i>$lang[USERNAME]</i></small>
684 <small><i class=\"fa fa-question-circle-o text-info\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"$lang[I_ADMINUSER]\"></i></small>
686 <input required type=\"text\" class=\"form-control\" name=\"USERNAME\" id=\"USERNAME\" placeholder=\"$setup[ADMIN_USER]\" value=\"admin\">
687 <label for=\"PASSWORD\">$lang[PASSWORD] <small><i>$lang[PASSWORD]</i></small>
688 <small><i class=\"fa fa-question-circle-o text-info\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"$lang[I_ADMINPASS]\"></i></small>
690 <input required type=\"password\" class=\"form-control\" name=\"PASSWORD\" id=\"PASSWORD\" placeholder=\"$setup[ADMIN_PASS]\">
691 <label for=\"PASSWORD2\">$lang[PASSWORD] <small><i>($lang[REPEAT])</i></small>
692 <small><i class=\"fa fa-question-circle-o text-info\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"$lang[I_ADMINPASS_CONFIRM]\"></i></small>
694 <input required type=\"password\" class=\"form-control\" name=\"PASSWORD2\" id=\"PASSWORD2\" placeholder=\"$setup[ADMIN_PASS]\">
696 <input type=\"hidden\" name=\"url\" value=\"$this->url\">
697 <input type=\"hidden\" name=\"rootPath\" value=\"$this->rootPath\">
698 <input type=\"hidden\" name=\"step\" value=\"5\">
699 <input type=\"hidden\" name=\"currentLanguage\" value=\"$language->currentLanguage\">
700 <button type=\"submit\" class=\"btn btn-success pull-right\"><small>$_POST[step]/5</small> $lang[NEXT_STEP] <i class=\"fa fa-arrow-right\"></i></button>
702 <div class=\"col-md-5 text-justify\">
705 <h4>$lang[ACCOUNT_NOTICE]</h4>
706 $lang[ACCOUNT_NOTICE_INFO]
708 <b>$lang[STEP5]</b><br>
References $db, $lang, YAWK\alert\draw(), YAWK\sys\getBaseDir(), and YAWK\settings\setSetting().
Referenced by YAWK\installer\setup(), and YAWK\installer\step5().
◆ step5()
YAWK\installer::step5 |
( |
array |
$setup, |
|
|
|
$language, |
|
|
array |
$lang |
|
) |
| |
step 5 - save data, write .htaccess files and redirect to backend login - FIN
- Parameters
-
array | $setup | installation settings |
object | $language | language object |
array | $lang | array language data array |
- Author
- Daniel Retzl danie.nosp@m.lret.nosp@m.zl@gm.nosp@m.ail..nosp@m.com @license https://opensource.org/licenses/MIT
Definition at line 720 of file installer.php.
726 require_once(
'system/classes/db.php');
727 $db = new \YAWK\db();
729 if (isset($_POST[
'url']) && (!empty($_POST[
'url'])))
731 $this->url = $_POST[
'url'];
733 if (isset($_POST[
'rootPath']) && (!empty($_POST[
'rootPath'])))
735 $this->rootPath = $_POST[
'rootPath'];
738 if (isset($_POST[
'EMAIL']) && (!empty($_POST[
'EMAIL'])))
742 if (isset($_POST[
'USERNAME']) && (!empty($_POST[
'USERNAME'])))
744 if (\
YAWK\user::create(
$db, $_POST[
'USERNAME'], $_POST[
'PASSWORD'], $_POST[
'PASSWORD2'], $_POST[
'EMAIL'],
"",
"",
"",
"",
"",
"",
"",
"",
"", 0, 1,
"Administrator", 5) ===
true)
751 $htaccessAdminStatus = 0;
753 \YAWK\alert::draw(
"warning",
"$lang[HTACCESS_WRITE_FAILED_ADMIN]",
"$lang[HTACCESS_WRITE_FAILED_ADMIN_SUBTEXT]",
"",
"");
755 else { $htaccessAdminStatus = 1; }
759 { $htaccessRootStatus = 0;
761 \YAWK\alert::draw(
"warning",
"$lang[HTACCESS_WRITE_FAILED_ROOT]",
"$lang[HTACCESS_WRITE_FAILED_ROOT_SUBTEXT]",
"",
"");
763 else { $htaccessRootStatus = 1; }
765 $htStatus = $htaccessAdminStatus+$htaccessRootStatus;
768 if (unlink(
'setup.php'))
770 \YAWK\alert::draw(
"success",
"$lang[INSTALL_COMPLETE]",
"$lang[INSTALL_COMPLETE_SUBTEXT]",
"", 3000);
776 \YAWK\alert::draw(
"warning",
"$lang[INSTALL_COMPLETE]",
"$lang[SETUP_UNLINK_FAILED]",
"", 5000);
783 if ($htaccessAdminStatus === 0)
785 \YAWK\alert::draw(
"warning",
"$lang[HTACCESS_WRITE_FAILED_ADMIN]",
"$lang[HTACCESS_WRITE_FAILED_ADMIN_SUBTEXT]",
"",
"");
788 if ($htaccessRootStatus === 0)
790 \YAWK\alert::draw(
"warning",
"$lang[HTACCESS_WRITE_FAILED_ROOT]",
"$lang[HTACCESS_WRITE_FAILED_ROOT_SUBTEXT]",
"",
"");
796 @unlink($this->setupIndicator);
800 if (isset($_POST[
'step']) && (!empty($_POST[
'step']))) { $_POST[
'step']--; }
801 \YAWK\alert::draw(
"warning",
"$lang[INSTALL_USERNAME_FAILED]",
"$lang[INSTALL_USERNAME_FAILED_SUBTEXT]",
"", 5000);
writeHtaccessFileToRootFolder()
writeHtaccessFileToAdminFolder()
this function writes the .htaccess file to the admin/ folder
static setTimeout($location, $wait)
set a timeout and force page reload via JS
This class serves methods to create backup from files.
References $db, $lang, YAWK\alert\draw(), exit, YAWK\settings\setSetting(), YAWK\sys\setTimeout(), YAWK\installer\step4(), YAWK\installer\writeHtaccessFileToAdminFolder(), and YAWK\installer\writeHtaccessFileToRootFolder().
Referenced by YAWK\installer\setup().
◆ writeHtaccessFileToAdminFolder()
YAWK\installer::writeHtaccessFileToAdminFolder |
( |
| ) |
|
this function writes the .htaccess file to the admin/ folder
- Author
- Daniel Retzl danie.nosp@m.lret.nosp@m.zl@gm.nosp@m.ail..nosp@m.com @license https://opensource.org/licenses/MIT
Definition at line 815 of file installer.php.
817 $file =
'admin/.htaccess';
820 #Options +FollowSymlinks
826 ErrorDocument 404 $host/content/errors/404.html
829 RewriteCond %{REQUEST_URI} /(.*).html
830 RewriteRule ^(.*).html$ \\index.php?include=$1
831 # Rewrite .html - no extension needed e.g. you can use http://www.yoursite/gallery instead of /gallery.html
832 RewriteRule ^([^\\.]+)$ \\index.php?page=$1 [NC,L]
835 #RewriteRule ^(.*).htm$ \\index.php?include=$1
837 if (is_writable($file))
839 if (file_put_contents($file,
$data, LOCK_EX))
850 if (chmod($file, 0664))
852 if (file_put_contents($file,
$data, LOCK_EX))
References $data, $host, and YAWK\installer\$url.
Referenced by YAWK\installer\step5().
◆ writeHtaccessFileToRootFolder()
YAWK\installer::writeHtaccessFileToRootFolder |
( |
| ) |
|
- Returns
- bool
Definition at line 871 of file installer.php.
878 # to work correctly, you need +FollowSymLinks or at least +SymLinksIfOwnerMatch enabled.
879 # if you get an ERROR 500, try ifownermatch (slower) and/or ask you webhoster to enable mod_rewrite + symlinks
881 #Options +FollowSymlinks
882 #Options +SymlinksIfOwnerMatch
883 DirectoryIndex index.php
888 ErrorDocument 404 '.$host.
'/content/errors/404.html
892 RewriteBase '.$this->rootPath.
'
893 RewriteCond %{REQUEST_URI} /(.*).html
894 # rewrite all .html files to index.php?include={filename}
895 RewriteRule ^(.*).html$ \index.php?include=$1 [NC,L]
896 # rewrite all .htm files to index.php?include={filename}
897 # if you wish to use tinymce, you need put a # in front of the next line
898 RewriteRule ^(.*).htm$ \index.php?include=$1 [NC,L]
899 # Allow Robots.txt to pass through
900 RewriteRule ^robots.txt - [L]
901 # Userpage Rewrite Rule
902 RewriteRule ^welcome/([^/]*)$ \index.php?signup=1 [NC,L]
903 RewriteRule ^users/([^/]*)$ \index.php?user=$1 [NC,L]
904 RewriteRule ^users([^/]*)$ \index.php?user=$1 [NC,L]
905 # Rewrite .html - no extension needed e.g. you can use http://www.yoursite/gallery instead of /gallery.html
906 RewriteRule ^([^\.]+)$ $1.html [NC,L]
907 # any other plugin...
908 # RewriteRule ^plugin([^/]*)$ \index.php?plugin=$1 [L]
910 # CACHE + THREAD SETTINGS
911 <ifModule mod_headers.c>
912 Header set Connection keep-alive
913 Header set Access-Control-Allow-Origin "*"
916 # CACHE - STATIC CONTENT CACHING starts here
921 # if caching does not work, or you get 500 - server error, check if the required module are loaded.
922 # in your httpd.conf look for the following line:
923 # #LoadModule expires_module modules/mod_expires.so -- uncomment it & restart server.
924 # if you cannot load the modules, comment out all lines til #END CACHING -- and it will work (w/o caching)
925 <IfModule mod_expires.c>
926 # Add correct content-type for fonts
927 AddType application/vnd.ms-fontobject .eot
928 AddType application/x-font-ttf .ttf
929 AddType application/x-font-opentype .otf
930 AddType application/x-font-woff .woff
931 AddType image/svg+xml .svg
936 # default expire: 1 day
937 ExpiresDefault A86400
939 # set cacheable items
940 ExpiresByType image/x-icon A2592000
941 ExpiresByType application/x-javascript A1209600
942 ExpiresByType text/css A1209600
943 ExpiresByType image/gif A1209600
944 ExpiresByType image/png A1209600
945 ExpiresByType image/jpeg A1209600
946 ExpiresByType text/plain A86400
947 ExpiresByType application/x-shockwave-flash A2592000
948 ExpiresByType video/x-flv A2592000
949 ExpiresByType application/pdf A2592000
950 ExpiresByType text/html A86400
951 # Add a far future Expires header for fonts
952 ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
953 ExpiresByType application/x-font-ttf "access plus 1 year"
954 ExpiresByType application/x-font-opentype "access plus 1 year"
955 ExpiresByType application/x-font-woff "access plus 1 year"
956 ExpiresByType image/svg+xml "access plus 1 year"
958 ## Set up caching on media files for 1 month
959 <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|swf)$">
960 ExpiresDefault A2592000
961 Header append Cache-Control "public"
964 ## Set up caching on images css and js files for 2 weeks
965 <FilesMatch "\.(gif|jpg|jpeg|png|js|css)$">
966 ExpiresDefault A1209600
967 Header append Cache-Control "public"
970 ## Set up 1 day caching on commonly updated files
971 <FilesMatch "\.(xml|txt|htm|html)$">
972 ExpiresDefault A86400
973 Header append Cache-Control "private, must-revalidate"
976 ## Force no caching for dynamic files
977 <FilesMatch "\.(php|cgi|pl)$">
979 Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0"
980 Header set Pragma "no-cache"
985 # compress the output of html, xml, txt, css and js files
986 # mod_gzip compression (legacy, Apache 1.3)
987 <IfModule mod_gzip.c>
990 mod_gzip_item_include file \.(html?|xml|txt|css|js)$
991 mod_gzip_item_include handler ^cgi-script$
992 mod_gzip_item_include mime ^text/.*
993 mod_gzip_item_include mime ^application/x-javascript.*
994 mod_gzip_item_exclude mime ^image/.*
995 mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
999 # DEFLATE compression
1000 # this deflates all zipped files
1001 <IfModule mod_deflate.so>
1002 # Set compression for: html,txt,xml,js,css,svg and otf, ttf and woff fonts
1003 AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/xml application/xhtml+xml application/x-javascript application/x-font-ttf application/x-font-opentype image/svg+xml
1004 # Deactivate compression for buggy browsers
1005 BrowserMatch ^Mozilla/4 gzip-only-text/html
1006 BrowserMatch ^Mozilla/4.0[678] no-gzip
1007 BrowserMatch bMSIE !no-gzip !gzip-only-text/html
1008 # Set header information for proxies
1009 Header append Vary User-Agent
1012 # END CACHING ############################################
1014 # override max post size
1015 # php_value post_max_size 32M
1017 # override max upload file size
1018 # php_value upload_max_filesize 32M
1023 if (is_writable($file))
1025 if (file_put_contents($file,
$data, LOCK_EX))
1036 if (chmod($file, 0664))
1038 if (file_put_contents($file,
$data, LOCK_EX))
References $data, $host, and YAWK\installer\$url.
Referenced by YAWK\installer\step5().
◆ $apacheCheckIcon
YAWK\installer::$apacheCheckIcon |
- Parameters
-
string | $apacheCheckIcon | apache version icon: depending on true or false, check or times |
Definition at line 37 of file installer.php.
◆ $apacheStatus
YAWK\installer::$apacheStatus |
- Parameters
-
string | $apacheStatus | Apache Version |
Definition at line 35 of file installer.php.
◆ $configFile
YAWK\installer::$configFile = "system/setup/install.ini" |
- Parameters
-
string | $configFile | the path and filename to install.ini which helds the setup configuration |
Definition at line 17 of file installer.php.
◆ $dbConfigPhp
YAWK\installer::$dbConfigPhp = "system/classes/dbconfig.php" |
- Parameters
-
string | $dbConfigPhp | the path and filename to dbconfig.php which helds the mysql configuration |
Definition at line 19 of file installer.php.
◆ $filePointer
YAWK\installer::$filePointer = "system/setup/yawk_database.sql_filepointer" |
- Parameters
-
string | $filePointer | the path and filename to the sql file's filepointer |
Definition at line 23 of file installer.php.
◆ $modRewriteCheckIcon
YAWK\installer::$modRewriteCheckIcon |
- Parameters
-
string | $modRewriteCheckIcon | mod_rewrite icon depending on true or false, check or times |
Definition at line 45 of file installer.php.
◆ $modRewriteStatus
YAWK\installer::$modRewriteStatus |
- Parameters
-
string | $modRewriteStatus | is mod_rewrite available? |
Definition at line 43 of file installer.php.
◆ $phpCheckIcon
YAWK\installer::$phpCheckIcon |
- Parameters
-
string | $phpCheckIcon | php version icon: depending on true or false, check or times |
Definition at line 33 of file installer.php.
◆ $phpVersionRequired
YAWK\installer::$phpVersionRequired = "8.x" |
- Parameters
-
string | $phpVersionRequired | required PHP version |
Definition at line 31 of file installer.php.
◆ $phpVersionStatus
YAWK\installer::$phpVersionStatus |
- Parameters
-
bool | $phpVersionStatus | PHP Version |
Definition at line 29 of file installer.php.
◆ $rootPath
YAWK\installer::$rootPath |
- Parameters
-
string | $rootPath | the root path where yawk is installed |
Definition at line 15 of file installer.php.
◆ $serverRequirementCount
YAWK\installer::$serverRequirementCount |
- Parameters
-
string | $serverRequirementCount | how many requirements were met? |
Definition at line 49 of file installer.php.
◆ $serverRequirements
YAWK\installer::$serverRequirements |
- Parameters
-
bool | $serverRequirements | does the server fulfil requirements? true or false |
Definition at line 47 of file installer.php.
◆ $setupIndicator
YAWK\installer::$setupIndicator = 'system/setup/setup.indicator' |
◆ $sqlFile
YAWK\installer::$sqlFile = "system/setup/yawk_database.sql" |
- Parameters
-
string | $sqlFile | the path and filename to yawk's core sql database file |
Definition at line 21 of file installer.php.
◆ $step
- Parameters
-
int | $step | holds the installation step variable |
Definition at line 11 of file installer.php.
◆ $url
◆ $version
YAWK\installer::$version = "1.0" |
- Parameters
-
string | $version | Installer version |
Definition at line 27 of file installer.php.
◆ $yawkVersion
YAWK\installer::$yawkVersion |
- Parameters
-
string | $yawkVersion | detected from install.ini |
Definition at line 25 of file installer.php.
◆ $zlib
- Parameters
-
string | $zlib | zlib enalbed? string: true or false |
Definition at line 39 of file installer.php.
◆ $zlibCheckIcon
YAWK\installer::$zlibCheckIcon |
- Parameters
-
string | $zlibCheckIcon | zlib icon: depending on true or false, check or times |
Definition at line 41 of file installer.php.
The documentation for this class was generated from the following file: