function settingsfileq() { global $wgmicpgpsetfile; $html = null; if (@file_exists("extensions/GroupPermissions/settings.php")) { $set = @$wgmicpgpsetfile; if ($set !== "yes") { $html = $html . errorbox('<strong>WARNING: </strong>Please add require_once("$IP/extensions/GroupPermissions/settings.php"); to Localsettings.php for changes to be applied to this wiki'); } } return $html; }
invite/sentinvites"><b><?php echo $this->lang('os_invite_tab_sentinvites'); ?> </b></a> </div> <div class="invinfo"> <?php echo $this->lang('os_invite_txt_uploadcsv', array('#SITE_TITLE#' => $C->SITE_TITLE)); ?> </div> <?php if ($D->error) { ?> <?php echo errorbox($this->lang('inv_uplfile_error'), $this->lang($D->errmsg), TRUE, 'margin-bottom:5px;'); ?> <?php } ?> <div class="greygrad"> <div class="greygrad2"> <div class="greygrad3" style="padding-bottom:0px;"> <form method="post" action="" enctype="multipart/form-data"> <table id="setform" cellspacing="5"> <tr> <td class="setparam"><?php echo $this->lang('inv_uplfile_finp'); ?> </td>
$error = TRUE; break; } } if (!$error) { $_SESSION['INSTALL_STEP'] = 3; header('Location: ?next&r=' . rand(0, 99999)); } $html .= ' <div class="ttl"> <div class="ttl2"> <h3>System Compatibility Check</h3> </div> </div>'; if ($error) { $html .= errorbox('Not Compatible', 'Please correct the highlighted settings and hit "Refresh".', FALSE, 'margin-top:5px;margin-bottom:0px;'); $_SESSION['INSTALL_STEP'] = 2; } $html .= ' <div class="greygrad" style="margin-top: 5px;"> <div class="greygrad2"> <div class="greygrad3" style="padding-top:0px;"> <table cellpadding="5" style="width:100%;">'; foreach ($check as $k => $v) { $txt = $texts[$k]; $html .= ' <tr> <td colspan="2" style="font-size:0; line-height:0; height: 0; padding: 0; border-bottom: 1px solid #efefef;"></td> </tr> <tr> <td style="' . ($v ? '' : 'color:red;font-weight:bold;') . '">' . $txt . '</td>
</h3></div> </div> <?php if ($D->submit && !$D->error) { ?> <?php echo okbox($this->lang('cntf_ok_ttl'), $this->lang('cntf_ok_txt'), FALSE, 'margin-top:5px;margin-bottom:5px;'); ?> <?php } else { ?> <?php if ($D->error) { ?> <?php echo errorbox($this->lang('cntf_error'), $this->lang($D->errmsg), TRUE, 'margin-top:5px;margin-bottom:5px;'); ?> <?php } ?> <div class="greygrad" style="margin-top:5px;"> <div class="greygrad2"> <div class="greygrad3"> <form method="post" action=""> <table id="setform" style="width:100%;" cellspacing="5"> <tr> <td class="setparam"><?php echo $this->lang('cnt_frm_fullname'); ?> </td> <td><input type="text" class="setinp" name="fullname" value="<?php
<div class="ttl"><div class="ttl2"><h3><?php echo $this->lang('settings_email_ttl2'); ?> </h3></div></div> <?php if ($D->submit && !$D->error && !$D->notif) { ?> <?php echo okbox($this->lang('st_email_okttl'), $this->lang('st_email_oktxt'), FALSE, 'margin-top:5px;'); ?> <?php } elseif ($D->submit && $D->error && !$D->notif) { ?> <?php echo errorbox($this->lang('st_email_current_errttl'), $D->errmsg, TRUE, 'margin-top:5px;'); ?> <?php } elseif ($D->submit && $D->error && $D->notif) { ?> <?php echo msgbox($this->lang('st_email_notif_sendttl'), $this->lang('st_email_notif_send', array('#EMAIL#' => $D->new_email)), FALSE, 'margin-top:5px;'); ?> <?php } ?> <?php if (!$D->notif && !$D->new_email_active) { ?> <div style='margin-top: 10px;'>
?> / <?php echo $D->steps; ?> </span></div> <?php } ?> </div> </div> <?php if ($D->error) { ?> <?php echo errorbox($this->lang('signup_step2_error'), $this->lang($D->errmsg, $D->errmsg_lngkeys)); ?> <?php } ?> <form method="post" action=""> <table id="regform" cellspacing="5" style="margin-bottom:10px;"> <?php if (preg_match('/\\@proxymail\\.facebook\\.com$/iu', $D->email)) { ?> <?php } elseif ($C->USERS_EMAIL_CONFIRMATION) { ?> <tr> <td class="regparam" style="padding:5px; padding-top:7px;"><?php echo $this->lang('signup_step2_form_email');
</div> </div> <div id="settings_right"> <div class="ttl"> <div class="ttl2"> <h3><?php echo $this->lang('settings_delaccount_ttl2'); ?> </h3> </div> </div> <?php if ($D->error) { ?> <?php echo errorbox($this->lang('st_delaccount_error'), $this->lang($D->errmsg), TRUE, 'margin-top:5px;margin-bottom:5px;'); ?> <?php } ?> <div class="greygrad" style="margin-top:5px;"> <div class="greygrad2"> <div class="greygrad3"> <?php echo $this->lang('st_delaccount_description'); ?> <form method="post" name="delaccount" onsubmit="return confirm('<?php echo htmlspecialchars($this->lang('st_delaccount_confirm')); ?> ');" action="<?php
<?php $this->load_template('header.php'); ?> <?php if ($D->error) { ?> <?php echo errorbox($this->lang('signin_form_error'), $this->lang($D->errmsg)); ?> <?php } elseif ($this->param('pass') == 'changed') { ?> <?php echo okbox($this->lang('signinforg_alldone_ttl'), $this->lang('signinforg_alldone_txt')); ?> <?php } ?> <div id="poblicpage_login"> <form method="post" action=""> <table id="regform" cellspacing="5"> <tr> <td></td> <td> <b><?php echo $this->lang('signin_form_caption'); ?> </b> <a id="forgotpass" href="<?php
api_details?app_id=<?php echo $D->data['app_id']; ?> ' method='post'> <td> <input style="padding:4px; font-weight:bold;" type='submit' name='delete' value='<?php echo $this->lang('api_app_del_msg2'); ?> ' /> </td> </form> </tr> </table> <?php } elseif ($D->error) { echo errorbox($this->lang('api_err_ttl'), $D->err_msg, FALSE); } elseif (isset($D->complete)) { echo okbox($this->lang('api_ok_ttl'), $D->msg, FALSE); } if (isset($_POST['delete'])) { ?> <a href="<?php echo $C->SITE_URL; ?> api" class="ubluebtn"><b><?php echo $this->lang('api_app_btn'); ?> </b></a> <?php } ?>
} ?> <?php } elseif ($D->error_key) { ?> <?php echo errorbox($this->lang('signinforg_errkey_ttl'), $this->lang('signinforg_errkey_txt'), FALSE); ?> <?php } else { ?> <?php if ($D->error) { ?> <?php echo errorbox($this->lang('signinforg_err'), $this->lang($D->errmsg)); ?> <?php } ?> <form method="post" action=""> <table id="regform" cellspacing="5"> <tr> <td class="regparam"><?php echo $this->lang('signinforg_form_password'); ?> </td> <td><input type="password" name="pass1" value="" maxlength="100" class="reginp" autocomplete="off" /></td> </tr> <tr> <td class="regparam"><?php
$s['SITE_URL'] = $s['SITE_URL'] . '/'; $s['DOMAIN'] = preg_replace('/^(http|https)\\:\\/\\//', '', $s['SITE_URL']); $s['DOMAIN'] = trim($s['DOMAIN'], '/'); $s['DOMAIN'] = preg_replace('/\\/.*$/', '', $s['DOMAIN']); $_SESSION['INSTALL_STEP'] = 6; header('Location: ?next&r=' . rand(0, 99999)); } } $html .= ' <div class="ttl"> <div class="ttl2"> <h3>Website Settings</h3> </div> </div>'; if ($error) { $html .= errorbox('Error', $errmsg, TRUE, 'margin-top:5px; margin-bottom:5px;'); } $html .= ' <div class="greygrad" style="margin-top: 5px;"> <div class="greygrad2"> <div class="greygrad3" style="padding-top:0px;"> <form method="post" action=""> <table id="setform" cellpadding="5"> <tr> <td class="setparam" width="120">Website Address:</td> <td><input type="text" name="SITE_URL" value="' . htmlspecialchars($s['SITE_URL']) . '" class="setinp" /></td> </tr> <tr> <td class="setparam">Website Title:</td> <td><input type="text" name="SITE_TITLE" value="' . htmlspecialchars($s['SITE_TITLE']) . '" class="setinp" /></td> </tr>
unset($rperms[$dr]); unset($recursive[$i]); } } if (!$error) { $_SESSION['INSTALL_STEP'] = 5; header('Location: ?next&r=' . rand(0, 99999)); } $html .= ' <div class="ttl"> <div class="ttl2"> <h3>Files & Folders Permissions</h3> </div> </div>'; if ($error) { $html .= errorbox('Please set the permissions', 'Set the permissions with your FTP client and hit "Refresh".', FALSE, 'margin-top:5px;margin-bottom:5px;'); $_SESSION['INSTALL_STEP'] = 4; } $html .= ' <div class="greygrad" style="margin-top: 5px;"> <div class="greygrad2"> <div class="greygrad3" style="padding-top:0px;"> <p>The following files and folders must have read and write permissions (CHMOD <b>0777</b> or <b>0766</b>)</p> <table cellpadding="5" style="width:100%;">'; foreach ($files as $fl) { $html .= ' <tr> <td colspan="2" style="font-size:0; line-height:0; height: 0; padding: 0; border-bottom: 1px solid #efefef;"></td> </tr> <tr> <td>' . $fl . '</td>
header('Location: ?next'); exit; } } $html .= ' <div class="ttl"> <div class="ttl2"> <h3>Welcome to ' . SITE_TITLE . ' Installation Wizard</h3> </div> </div> <div class="greygrad" style="margin-top: 5px;"> <div class="greygrad2"> <div class="greygrad3" style="padding-top:0px;"> <p>This wizard will help you install ' . SITE_TITLE . ' ' . VERSION . ' on your webserver.</p>'; if ($error) { $html .= errorbox('Sorry', 'You must accept the ' . SITE_TITLE . ' License terms and limitations to proceed with installation.'); } $html .= ' <form method="post" action=""> <div style="margin-top: 10px; margin-left:2px;"> <label> <input type="checkbox" name="accept1" value="1" style="margin:0px; padding:0px; border:0px solid; line-height:1; margin-right:8px;" />I accept the ' . SITE_TITLE . ' <a href="license.txt" target="_blank"> License terms and limitations</a>. </label> '; //<label> //<input type="checkbox" name="accept2" value="1" style="margin:0px; padding:0px; border:0px solid; line-height:1; margin-right:8px;" />I accept the '.SITE_TITLE.' <a href="license_annual.txt" target="_blank">Annual License terms and limitations</a>. //</label> $html .= ' </div> <div style="margin-top: 10px;"> <input type="submit" name="submit" value="Install" style="padding:4px; font-weight:bold;" /> </div>
* * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ //CloudLevels Admin Control Panel //Header + Vars: $page_title = 'Administrator Control Panel'; include 'header.php'; //Admins only! if ($user_type != 2) { errorbox('You do not have permission to view this page.'); include 'footer.php'; exit(0); } //When there is input data if (!empty($_POST["name"])) { //Create configuration file: //Open file $configfile = fopen("configuration.php", "w") or die('<div class="card hoverable red"><div class="card-content white-text"><p>ERROR: File <strong>configuration.php</strong> could not be written to server.</p></div></div>'); fwrite($configfile, "<?php\n"); //Write database values fwrite($configfile, "\$db_type='" . $db_type . "';\n"); fwrite($configfile, "\$db_hostname='" . $db_hostname . "';\n"); fwrite($configfile, "\$db_username='******';\n"); fwrite($configfile, "\$db_password='******';\n"); fwrite($configfile, "\$db_database='" . $db_database . "';\n");
} if (($this->param('app') == 'new' || $this->param('app') == 'edit') && !$D->complete) { ?> <div class="ttl"><div class="ttl2"> <h3><?php echo $this->param('app') == 'new' ? $this->lang('api_a') : $this->lang('api_e'); ?> <?php echo $this->lang('api_app'); ?> </h3> </div></div> <div class="greygrad" style="margin-top:5px;"><div class="greygrad2"><div class="greygrad3"> <?php echo $D->post_fields_error ? errorbox($this->lang('api_fld_err'), $D->msg) : ''; ?> <table id="setform" cellspacing="5"> <form action="<?php echo $C->SITE_URL; ?> api/app:<?php echo $this->param('app'); echo isset($_GET['app_id']) ? '?app_id=' . $_GET['app_id'] : ''; ?> " enctype="multipart/form-data" method='post'> <tr> <td class="setparam" valign="top"><?php echo $this->lang('api_icon_name'); ?>
<?php echo $f($D->mtitle, $D->message, FALSE); ?> <?php } else { ?> <div class="invinfo"> <?php echo $this->lang('os_invite_txt_colleagues', array('#SITE_TITLE#' => $C->SITE_TITLE, '#OUTSIDE_SITE_TITLE#' => $C->OUTSIDE_SITE_TITLE)); ?> </div> <?php if ($D->status == 'errorbox') { ?> <?php echo errorbox($D->mtitle, $D->message, TRUE, 'margin-bottom:5px;'); ?> <?php } ?> <div class="greygrad"> <div class="greygrad2"> <div class="greygrad3" style="padding-bottom:0px;"> <form method="post" action=""> <table id="setform" cellspacing="5"> <tr> <td></td> <td><b style="font-size:14px;"><?php echo $this->lang('inv_clg_form_title'); ?> </b></td>
$stmt = $db->prepare("\n\t\t\tSELECT id, username, password\n\t\t\tFROM cl_user\n\t\t\tWHERE username = ?"); $stmt->execute(array($_POST["username"])); $result = $stmt->fetchAll(); $passhash = $result[0]['password']; //Compare password hash if (crypt($_POST["password"], $passhash) == $passhash) { successbox('Logging in. Please wait.'); //Session set $_SESSION['uid'] = $result[0]['id']; //Refresh header("Refresh:2;url=index.php"); } else { errorbox('Invalid login information.'); } } catch (PDOException $ex) { errorbox('Something happened.'); } } else { ?> <br> <div class="container"> <div class="row card hoverable"> <span class="col s12 card-title <?php echo $theme; ?> white-text center" style="font-size: 200%;">Log In</span> <form action="login.php" method="post" class="col s12 m10 l8 offset-m1 offset-l2"> <div class="input-field col s12"> <i class="fa fa-user prefix" aria-hidden="true"></i> <input id="username" name="username" type="text" class="validate" required>
?> </div> <div id="settings_right"> <div class="ttl"> <div class="ttl2"> <h3><?php echo $this->lang('admtitle_termsofuse'); ?> </h3> </div> </div> <?php if ($D->error) { ?> <?php echo errorbox($this->lang('admtrms_err_ttl'), $this->lang($D->errmsg), TRUE, 'margin-top:5px;margin-bottom:5px;'); ?> <?php } elseif ($D->submit) { ?> <?php echo okbox($this->lang('admtrms_ok_ttl'), $this->lang($D->okmsg, array('#A2#' => '</a>', '#A1#' => '<a href="' . $C->SITE_URL . 'terms">')), TRUE, 'margin-top:5px;margin-bottom:5px;'); ?> <?php } ?> <div class="greygrad" style="margin-top:5px;"> <div class="greygrad2"> <div class="greygrad3" style="padding-top:2px;"> <form method="post" action=""> <table id="setform" cellspacing="5" width="100%">
$_SESSION['INSTALL_STEP'] = 2; header('Location: ?next&r=' . rand(0, 99999)); } } $html .= ' <div class="ttl"> <div class="ttl2"> <h3>Database Settings</h3> </div> </div> <div class="greygrad" style="margin-top: 5px;"> <div class="greygrad2"> <div class="greygrad3" style="padding-top:0px;"> <p>Fill in the information about the MySQL database. For new ' . SITE_TITLE . ' installations you must create an <b>empty</b> MySQL database.</p>'; if ($error) { $html .= errorbox('Error', $errmsg); } $html .= ' <form method="post" action=""> <table id="setform" cellspacing="5"> <tr> <td class="setparam" style="padding-bottom:0px">MySQL Host:</td> <td style="padding-bottom:0px;"><input type="text" class="setinp" name="MYSQL_HOST" value="' . htmlspecialchars($s['MYSQL_HOST']) . '" /></td> </tr> <tr> <td class="setparam" style="padding-top:0px;"></td> <td style="padding-top:0px; font-size:10px; color:#333;">Usually "localhost"</td> </tr> <tr> <td class="setparam">Username:</td> <td style="padding-bottom:2px;"><input type="text" autocomplete="off" class="setinp" name="MYSQL_USER" value="' . htmlspecialchars($s['MYSQL_USER']) . '" /></td>
</div> </td> </tr> </table> <?php } ?> <div class="ttl" style="margin-top:10px; margin-bottom:6px;"><div class="ttl2"><h3><?php echo $this->lang('st_rssfeeds_f_title'); ?> </h3></div></div> <?php if ($D->error) { ?> <?php echo errorbox($this->lang('st_rssfeeds_err'), $this->lang($D->errmsg), TRUE, 'margin-bottom:5px;'); ?> <?php } elseif ($D->newfeed_auth_msg) { ?> <?php echo msgbox($this->lang('st_rssfeeds_pwdreq_ttl'), $this->lang('st_rssfeeds_pwdreq_txt'), TRUE, 'margin-bottom:5px;'); ?> <?php } ?> <form method="post" action="<?php echo $C->SITE_URL; ?> settings/rssfeeds"> <table id="setform" cellspacing="0" cellpadding="5">
<?php $this->load_template('header.php'); ?> <div id="invcenter"> <h2><?php echo $this->lang('newgroup_title2'); ?> </h2> <?php if ($D->error) { ?> <?php echo errorbox($this->lang('newgroup_f_err'), $this->lang($D->errmsg), TRUE, 'margin-top:5px; margin-bottom:4px;'); ?> <?php } ?> <div class="greygrad"> <div class="greygrad2"> <div class="greygrad3" style="padding-bottom:0px; padding-top:0px;"> <form method="post" action="" enctype="multipart/form-data"> <table id="setform" cellspacing="5" > <tr> <td width="80" class="setparam"><?php echo $this->lang('group_settings_f_title'); ?> </td> <td><input type="text" class="setinp" name="form_title" value="<?php echo htmlspecialchars($D->form_title); ?>
$last_id = $db->lastInsertId(); //Tag table entry if (!empty($_POST["tags"])) { foreach ($_POST["tags"] as $tag) { $stmt = $db->prepare("\n\t\t\t\t\tINSERT INTO cl_tag(file, tag)\n\t\t\t\t\tVALUES(?,?)"); $stmt->execute(array($last_id, htmlspecialchars($tag))); } } //Increment upload count $stmt = $db->prepare("\n\t\t\tUPDATE cl_user\n\t\t\tSET uploads = uploads+1\n\t\t\tWHERE id = ?"); $stmt->execute(array($_SESSION['uid'])); //End $db->commit(); } catch (PDOException $ex) { $db->rollBack(); errorbox('Upload failed. Please try again later.'); include 'footer.php'; exit(0); } //Actually upload the files move_uploaded_file($_FILES["file"]["tmp_name"], "data/" . $last_id . ".zip"); move_uploaded_file($_FILES["screenshot"]["tmp_name"], "data/" . $last_id . ".png"); //Success! successbox('File uploaded. Please wait.'); //Refresh header("Refresh:2;url=file.php?id=" . $last_id); } else { ?> <br> <div class="container">
} ?> </div> </div> <div id="settings_right"> <?php if ($D->submit && !$D->error) { ?> <?php echo okbox($this->lang('st_password_ok'), $this->lang('st_password_okmsg')); ?> <?php } elseif ($D->error) { ?> <?php echo errorbox($this->lang('st_password_err'), $this->lang($D->errmsg)); ?> <?php } ?> <div class="ttl"><div class="ttl2"><h3><?php echo $this->lang('settings_password_ttl2'); ?> </h3></div></div> <form method="post" action=""> <table id="setform" cellspacing="5"> <tr> <td class="setparam"><?php echo $this->lang('st_password_current'); ?> </td>
header('Location: ?next'); exit; } } $html .= ' <div class="ttl"> <div class="ttl2"> <h3>Welcome to ' . SITE_TITLE . ' Installation Wizard</h3> </div> </div> <div class="greygrad" style="margin-top: 5px;"> <div class="greygrad2"> <div class="greygrad3" style="padding-top:0px;"> <p>This wizard will help you install ' . SITE_TITLE . ' ' . VERSION . ' on your webserver.</p>'; if ($error) { $html .= errorbox('Sorry', 'You must accept ' . SITE_TITLE . ' Terms of Use to proceed with installation.'); } $html .= ' <form method="post" action=""> <div style="margin-top: 10px; margin-left:2px;"> <label> <input type="checkbox" name="accept" value="1" style="margin:0px; padding:0px; border:0px solid; line-height:1; margin-right:8px;" />I accept ' . SITE_TITLE . ' <a href="http://sharetronix.com/opensource/terms" target="_blank">Terms of Use</a>. </label> </div> <div style="margin-top: 10px;"> <input type="submit" name="submit" value="Install" style="padding:4px; font-weight:bold;" /> </div> </form> </div> </div> </div>';
?> <a href="<?php echo $C->SITE_URL; ?> settings/delaccount"><?php echo $this->lang('settings_menu_delaccount'); ?> </a> </div> </div> <div id="settings_right"> <?php if ($D->error) { ?> <?php echo errorbox($this->lang('st_avatat_err'), $this->lang($D->errmsg)); ?> <?php } elseif ($D->submit) { ?> <?php echo okbox($this->lang('st_avatat_ok'), $this->lang('st_avatat_okmsg')); ?> <?php } elseif (isset($D->msg) && $D->msg == 'deleted') { ?> <?php echo okbox($this->lang('st_avatat_ok'), $this->lang('st_avatat_okdelmsg')); ?> <?php }
?> </h3> <a class="ttlink" href="<?php echo $C->SITE_URL; echo $this->user->info->username; ?> /tab:info"><?php echo $this->lang('settings_viewprofile_link'); ?> </a> </div></div> <?php if (!empty($D->errmsg3)) { ?> <?php echo errorbox($this->lang('st_cnt_error'), $this->lang($D->errmsg3), TRUE, 'margin-top:5px;margin-bottom:0px;'); ?> <?php } ?> <table id="setform" cellspacing="5"> <tr> <td width="110" class="setparam"><?php echo $this->lang('st_cnt_s3_linkedin'); ?> </td> <td><input type="text" name="prof_linkedin" value="<?php echo isset($D->i->prof_linkedin) ? htmlspecialchars($D->i->prof_linkedin) : ''; ?> " class="setinp" maxlength="255" /></td> </tr>
//Check if IP address exists $stmt = $db->prepare("\n\t\t\t\t\tSELECT *\n\t\t\t\t\tFROM cl_user\n\t\t\t\t\tWHERE ip = ?"); $stmt->execute(array($_SERVER['REMOTE_ADDR'])); //If IP address exists if ($stmt->rowCount() > 0) { errorbox('You are only allowed to have one account.'); } else { date_default_timezone_set('America/New_York'); $stmt = $db->prepare("\n\t\t\t\t\t\tINSERT INTO cl_user(username, password, date, ip)\n\t\t\t\t\t\tVALUES(?,?,?,?)"); $stmt->execute(array(htmlspecialchars($_POST["username"]), crypt($_POST["password"]), date("F j, Y"), $_SERVER['REMOTE_ADDR'])); successbox('Your account has been created. Please log in.'); } } } catch (PDOException $ex) { $db->rollBack(); errorbox('Account could not be created. Hit the back button and try again.'); } } } } else { ?> <br> <div class="container"> <div class="row card hoverable"> <span class="col s12 card-title <?php echo $theme; ?> white-text center" style="font-size: 200%;">Register</span> <form action="register.php" method="post" class="col s12 m10 l8 offset-m1 offset-l2"> <div class="input-field col s12">
?> </div> <div id="settings_right"> <div class="ttl"> <div class="ttl2"> <h3><?php echo $this->lang('admtitle_networkbranding'); ?> </h3> </div> </div> <?php if ($D->error) { ?> <?php echo errorbox($this->lang('admbrnd_frm_err'), $this->lang($D->errmsg), TRUE, 'margin-top:5px;margin-bottom:5px;'); ?> <?php } elseif ($D->submit) { ?> <?php echo okbox($this->lang('admbrnd_frm_ok'), $this->lang('admbrnd_frm_ok_txt'), TRUE, 'margin-top:5px;margin-bottom:5px;'); ?> <?php } ?> <form method="post" action="<?php echo $C->SITE_URL; ?> admin/networkbranding" enctype="multipart/form-data"> <table id="setform" cellspacing="5">
?> </div> <div id="settings_right"> <div class="ttl"> <div class="ttl2"> <h3><?php echo $this->lang('admtitle_general'); ?> </h3> </div> </div> <?php if ($D->error) { ?> <?php echo errorbox($this->lang('admgnrl_error'), $this->lang($D->errmsg, array('#SITE_TITLE#' => $C->OUTSIDE_SITE_TITLE)), TRUE, 'margin-top:5px;margin-bottom:5px;'); ?> <?php } elseif ($D->submit) { ?> <?php echo okbox($this->lang('admgnrl_okay'), $this->lang('admgnrl_okay_txt'), TRUE, 'margin-top:5px;margin-bottom:5px;'); ?> <?php } ?> <div class="greygrad" style="margin-top:5px;"> <div class="greygrad2"> <div class="greygrad3" style="padding-top:0px;"> <form method="post" action=""> <table id="setform" cellspacing="5">
directory_tree_delete(INCPATH . '../../api/'); directory_tree_delete(INCPATH . '../../include/'); } } if (!$error) { @chmod(INCPATH . '../../.htaccess', 0664); @chmod(INCPATH . '../../system/conf_main.php', 0755); @chmod(INCPATH . '../../system/cache', 0777); @chmod(INCPATH . '../../i/avatars', 0777); @chmod(INCPATH . '../../i/avatars/thumbs1', 0777); @chmod(INCPATH . '../../i/avatars/thumbs2', 0777); @chmod(INCPATH . '../../i/avatars/thumbs3', 0777); @chmod(INCPATH . '../../i/attachments', 0777); @chmod(INCPATH . '../../i/tmp', 0777); @chmod(INCPATH . '../../system', 0755); $url = $s['SITE_URL']; $url = rtrim($url, '/') . '/installed:ok'; session_unset(); session_destroy(); header('Location: ' . $url); } } $html .= ' <div class="ttl"> <div class="ttl2"> <h3>Finishing Installation</h3> </div> </div>'; $html .= errorbox('Installation Failed!', 'Please <a href="?reset" style="font-size:inherit;">try again</a> or contact our team for help. Error code: ' . $errmsg . '.', FALSE, 'margin-top:5px;');