Ejemplo n.º 1
0
 if (!file_exists($pathw)) {
     @touch($pathw);
 }
 $conc = @fopen($pathw, 'w');
 if (!$conc) {
     die(errMod('DB Settings Could Not Be Write', 'danger'));
 } else {
     if (fputs($conc, $confList)) {
     } else {
         die(errMod('DB Settings Could Not Be Write', 'danger'));
     }
 }
 # Update Settings
 $setLethe = new lethe();
 $setLethe->onInstall = true;
 $setLethe->letheSettings();
 # Organization
 if (cntData("SELECT ID FROM " . $db_prefix . "organizations") == 0) {
     $orgLethe = new lethe();
     $orgLethe->onInstall = true;
     $orgLethe->addOrganization();
 }
 # User
 if (cntData("SELECT ID FROM " . $db_prefix . "users") == 0) {
     $opOr = $myconn->query("SELECT ID FROM " . $db_prefix . "organizations");
     $opOrRs = $opOr->fetch_assoc();
     $usrLethe = new lethe();
     $usrLethe->onInstall = true;
     $usrLethe->isMaster = 1;
     $usrLethe->auth_mode = 2;
     $usrLethe->isPrimary = 1;
Ejemplo n.º 2
0
# | Version       2.0                                                      |
# | Last modified 01.01.2015                                               |
# | Email         developer@artlantis.net                                  |
# | Web           http://www.artlantis.net                                 |
# +------------------------------------------------------------------------+
if (!isset($pgnt)) {
    die('You are not authorized to view this page!');
}
/* Demo Check */
if (!isDemo('saveSets')) {
    $errText = errMod(letheglobal_demo_mode_active, 'danger');
}
/* Save Settings */
if (isset($_POST['saveSets'])) {
    $letheSets = new lethe();
    $letheSets->letheSettings();
    $errText = $letheSets->errPrint;
}
echo $errText;
?>

<form name="genSets" id="genSets" action="" method="POST">
<div role="tabpanel">

  <!-- Nav tabs -->
  <ul class="nav nav-tabs" role="tablist">
    <li role="presentation" class="active"><a href="#general" aria-controls="general" role="tab" data-toggle="tab"><?php 
echo letheglobal_general_settings;
?>
</a></li>
    <li role="presentation"><a href="#helpers" aria-controls="helpers" role="tab" data-toggle="tab"><?php