function loadApps() { $db = new FQuery(); $db->connect(); $qr = null; //set $qr to null value $view = app_param('app'); if (isset($_GET['theme']) and $_GET['theme'] == 'module' and $_SESSION['USER_LEVEL'] > 3) { $view = ''; } $sql = $db->select(FDBPrefix . 'apps', '*', "folder='app_{$view}'"); mysql_fetch_array($sql); if (mysql_affected_rows() != 0) { $sql2 = $db->select(FDBPrefix . 'menu', '*', "id=" . Page_ID); $qrs = @mysql_fetch_array($sql2); $theme = siteConfig('site_theme'); $tfile = "themes/{$theme}/apps/app_{$view}/index.php"; $file = "apps/app_{$view}/index.php"; if (file_exists($file)) { if (_FEED_ != 'rss') { echo '<div class="apps' . $qrs["class"] . $qrs["class"] . '">'; } if (!empty($qrs['title']) and $qrs['show_title']) { define("Apps_Title", "{$qrs['title']}"); } if ($qrs['show_title']) { if (!defined('Apps_Title')) { define("Apps_Title", "{$qrs['name']}"); } } if (_FEED_ != 'rss') { echo '<div class="main_apps">'; } if (file_exists($tfile)) { include $tfile; } else { if (file_exists($file)) { include $file; } } if (_FEED_ != 'rss') { echo ' </div></div>'; } } } else { if (isset($_GET['theme']) and $_GET['theme'] == 'module' and $_SESSION['USER_LEVEL'] < 3) { echo "<div style='border: 2px solid #e3e3e3; background: rgba(250,250,250,0.8);\tcolor :#aaa; \n\t\tpadding: 30px; text-align: center; margin: 5px 3px; font-weight: bold;'>Main Content</div>"; } else { $lang = siteConfig('lang'); echo '<div class="apps' . $qr["class"] . '">' . _404_ . '</div><p>'; $file = "modules/mod_search/mod_search.php"; if (file_exists($file)) { include $file; } echo '</p>'; loadModule('404'); } } }
function redirect_www() { if ($_SERVER['SERVER_ADDR'] != '127.0.0.1' and $_SERVER['SERVER_ADDR'] != '::1' and $_SERVER['SERVER_ADDR'] != $_SERVER['HTTP_HOST']) { if (siteConfig('sef_www')) { if (!strpos(getUrl(), "//www.")) { $link = getUrl(); $link = str_replace("http://", "http://www.", $link); redirect($link); } } else { if (strpos(getUrl(), "//www.")) { $link = getUrl(); $link = str_replace("http://www.", "http://", $link); redirect($link); } } } }
<?php /** * @version 2.0 * @package Fiyo CMS * @copyright Copyright (C) 2014 Fiyo CMS. * @license GNU/GPL, see LICENSE. **/ //set single flag file define('_FINDEX_', 1); //load query and function files require_once '../../../system/jscore.php'; require_once '../../../../system/html.php'; //logical for image spot and auto fill $name = siteConfig('site_theme'); $html = file_get_html("../../../../themes/{$name}/index.php"); $pos = str_replace("<?=loadModule('", "{", $html); $pos = str_replace("loadModule('", "{", $html); $pos = str_replace("loadModule(\"", "{", $pos); $pos = str_replace("')", "}", $pos); $pos = str_replace("\")", "}", $pos); preg_match_all('/\\{(.*?)\\}/', $pos, $position); if (!empty($position[1])) { $no = 1; foreach ($position[1] as $val) { if ($no != 1) { echo ","; } echo "{$val}"; $no++; }
}); var btn = $("#save-file"); btn.show(); }); </script> <textarea id="text" name="content" class="scrolling text-theme" style="width:100%; max-width:100%; height: 500px;" ><?php echo $content; ?> </textarea> <?php } elseif ($file == "jpg" || $file == "jpeg" || $file == "png" || $file == "gif" || $file == "tif" || $file == "ico") { $furl = "../../{$url}"; echo "<div class='warp-img'><img src='" . siteConfig('site_url') . "{$furl}' style='max-width: 90%'/ ></div>"; ?> <script language="javascript" type="text/javascript"> $(document).ready(function() { var btn = $("#save-file"); btn.hide(); }); </script> <?php } else { alert('error', File_not_support); ?> <script language="javascript" type="text/javascript"> $(document).ready(function() { var btn = $("#save-file");
<div class="socials"> <div class="socials-inner"> <?php loadModule('breadchumb'); ?> <div class="cl"></div> </div> </div> <?php } ?> <div id="footer"> <div class="footer-bottom"> <p class="copy">© Copyright <?php echo siteConfig('site_name') . " " . date("Y"); ?> <br/><strong>My Engine is <a href="http://www.fiyo.org" target="_blank">Fiyo CMS</a></strong></p> <div class="cl"></div> </div> </div> </div> <!-- end of container --> </div> <!-- end of shell --> </div> <!-- end of wrapper --> </body> </html>
</div> <div class="panel box"> <header> <h5>Update</h5> </header> <div> <table> <tr> <td class="row-title"><span class="tips" title="<?php echo Fiyo_Version_tip; ?> "><?php echo Fiyo_Version; ?> <i class="global-version"></td> <td><b class="version-val"><?php echo siteConfig('version'); ?> </b> <a type="button" value="Check Update" class="btn btn-metis-2 updater" href="#update">Check Update</a></td> </tr> </table> </div> </div> </form> <div class="modal fade" id="modal-update" role="dialog" style="display:none"> <div class="modal-dialog modal-sm"> <div class="modal-content"> <div class="modal-header"><h4 class="modal-title">Sistem Update</h4> </div> <div class="modal-body"> <div class="update-info-update"><?php
function loadModule($position) { if (isset($_GET['theme']) and $_GET['theme'] == 'module' and $_SESSION['USER_LEVEL'] < 3) { echo "<div class='theme-module'>{$position}</div>"; } else { $db = new FQuery(); $db->connect(); $qrs = $db->select(FDBPrefix . 'module', '*', "status=1 AND position='{$position}'" . Level_Access, 'short ASC'); while ($qr = mysql_fetch_array($qrs)) { if (!empty($qr['page'])) { $page = explode(",", $qr['page']); foreach ($page as $val) { if (Page_ID == $val) { $qr['show_title'] == 1 ? $title = "<h3>{$qr['name']}</h3>" : ($title = ""); echo "<div class=\"modules {$qr['class']}\">{$title}<div class=\"mod-inner\" style=\"{$qr['style']}\">"; $modId = $qr['id']; $modParam = $qr['parameter']; $modFolder = $qr['folder']; $theme = siteConfig('site_theme'); $tfile = "themes/{$theme}/modules/{$qr['folder']}/{$qr['folder']}.php"; $file = "modules/{$qr['folder']}/{$qr['folder']}.php"; if (file_exists($tfile)) { include $tfile; } else { if (file_exists($file)) { include $file; } else { echo "Module Error : <b>{$qr['folder']}</b> is not installed!"; } } echo "</div></div>"; } } } else { if ($qr['page'] == Page_ID and FUrl == $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']) { if ($qr['show_title'] == 1) { $title = "<h3>{$qr['name']}</h3>"; } else { $title = ""; } echo "<div class=\"modules {$qr['class']}\">{$title}<div class=\"mod-inner\" style=\"{$qr['style']}\">"; $tfile = "themes/{$theme}/modules/{$qr['folder']}/{$qr['folder']}.php"; $file = "modules/{$qr['folder']}/{$qr['folder']}.php"; $modId = $qr['id']; $modFolder = $qr['folder']; $modParam = $qr['parameter']; if (file_exists($tfile)) { include $tfile; } else { if (file_exists($file)) { include $file; } else { echo "Module Error : <b>{$qr['folder']}</b> is not installed!"; } } echo "</div></div>"; } } } } }
if (TitleType == 2) { define('FTitle', SiteTitle . TitleDiv . PageTitle); } else { if (TitleType == 3) { define('FTitle', PageTitle); } else { if (TitleType == 0) { define('FTitle', SiteTitle); } } } } /********************************************/ /* Define Type & Site Title */ /********************************************/ $themes = siteConfig('site_theme'); define("FThemeFolder", $themes); define("FThemePath", FUrl . "themes/" . FThemeFolder . ""); define("FThemes", "themes/" . FThemeFolder . "/index.php"); /********************************************/ /* Load default theme */ /********************************************/ if (!file_exists(FThemes)) { echo alert("error", "Theme is not found!", true, true); die; } else { if (_FEED_ == 'rss' or _FINDEX_ == 'blank') { loadApps(); } else { require_once FThemes; }
<?php /** * @version 2.0 * @package Fiyo CMS * @copyright Copyright (C) 2012 Fiyo CMS. * @license GNU/GPL, see LICENSE.txt **/ defined('_FINDEX_') or die('Access Denied'); /* * Load core files */ require_once 'config.php'; require_once 'system/query.php'; require_once 'system/function.php'; //check table setting $ress = mysql_query("SHOW TABLES LIKE '" . FDBPrefix . "setting'"); mysql_num_rows($ress) or die(alert("error", "Table setting is not found. Please check <b>DBPrefix</b> on file config.php!", true, true)); //set default timezone $time = siteConfig('timezone'); if ($time) { date_default_timezone_set(siteConfig('timezone')); } /* * Load extentions */ loadExtention();
} if (is_dir("themes/{$folder}")) { $no++; $spot_file = "themes/{$folder}/theme_details.php"; if (file_exists($spot_file)) { include "{$spot_file}"; } else { $theme_version = "Error :: File <b>theme_details.php</b> not found in <b>{$folder}</b> "; $theme_author = "undefined"; $theme_date = "undefined"; $theme_name = $folder; $theme_name2 = strtolower($folder); } $theme_name2 = strtolower($theme_name); $active = 'enable'; $c = siteConfig('admin_theme'); $ac = Activate; if ($c == $folder) { $active = 'active'; $ac = Active; } $isi = "\n\t\t<div class='col-theme {$active}' data-name='{$theme_name}'>\n\t\t\t<div class='theme-box'>\n\t\t\t\t<div class='theme-image'>\n\t\t\t\t\t<a hhref='#'>\t\t\t\t\t\t\t\t\n\t\t\t\t\t<img src='themes/{$folder}/{$theme_image}' >\n\t\t\t\t\t<!--div> <span> Details </span></div -->\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t\t<div class='theme-title'>\t\t\t\n\t\t\t\t\t{$theme_name}\t\t\t\t\t\t\t\n\t\t\t\t\t<input type=\"button\" name=\"folder_themes\" data-name=\"{$folder}\" value=\"{$ac}\" class=\"theme-btn {$active} btn btn-success right\">\n\t\t\t\t</div>\n\t\t\t\t<span class='invisible'>{$theme_name2}</span>\n\t\t\t</div>\n\t\t</div>"; if ($c == $folder) { $act = $isi; } else { $thm .= $isi; } } } echo $act . $thm; closedir($dir);
function send($name, $email, $post, $send, $to) { if (isset($send)) { if (empty($name) or empty($email) or empty($post)) { alert("error", contact_Error); } else { if (!preg_match("/^.+@.+\\..+\$/", $email)) { alert("error", contact_Error2); } else { if ($_POST['captcha'] == $_SESSION['captcha']) { // multiple recipients $site = siteConfig('site_name'); $to = "{$to}"; $subject = "Email via {$site}"; $message = "{$post}<p> </p><p> </p><p> </p><p><small>Sent by <b> {$site}</b></small></p>"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= "To: <{$to}>\r\n"; $headers .= "From: {$name} <{$email}>" . "\r\n"; $mail = @mail($to, $subject, $message, $headers); alert("info", contact_Info); $this->sent = true; } else { alert("error", contact_Error3); } } } } }
<?php /** * @version 2.0 * @package Fiyo CMS * @copyright Copyright (C) 2012 Fiyo CMS. * @license GNU/GPL, see LICENSE.txt **/ defined('_FINDEX_') or die('Access Denied'); if (siteConfig('site_status') or !empty($_SESSION['USER_ID'])) { require_once 'user.php'; require_once 'site.php'; require_once 'html.php'; require_once 'plugins.php'; require_once 'apps.php'; require_once 'modules.php'; require_once 'themes.php'; } else { define('_OFFSITE_', 1); require_once 'site.php'; require_once 'themes-off.php'; }
$webmail = siteConfig('site_mail'); $domain = substr(FUrl(), 0, strpos(FUrl(), "/")); if (empty($webmail)) { } $webmail = "noreply@{$domain}"; if (siteConfig('lang') == 'id') { $subject = 'Konfirmasi Reset Password'; $message = "<font color='#333'>\n\t\t\t\t<p>Hi, {$qr['name']}</p> \n\t\t\t\t<p>Anda telah meminta kami untuk mengirimkan password baru.<br>Konfirmasi pesan ini dengan klik link konfirmasi berikut.</p>\n\t\t\t\t<p><a href='" . FUrl . "?{$reminder}' {$btnClass}> Konfirmasi Reset </a></p>\n\t\t\t\t<p>Pesan ini akan valid dalam 1-2 hari hingga Anda melakukan konfirmasi untuk reset password.<br>Jika Anda ingin membatalkan proses ini, abaikan saja email ini hingga kode kadaluarsa dalam 1-2 hari.</p>\n\t\t\t\t<p>Terimakasih.</p>\n\t\t\t\t<p> </p>\n\t\t\t\t<p><b>" . siteConfig('site_title') . "</b><br>" . FUrl . "</p></font>"; } else { $subject = 'Password Reset Confirmation'; $message = "<font color='#333'>\n\t\t\t\t<p>Hi, {$qr['name']}</p> \n\t\t\t\t<p>You have asked us to send you a new password.<br>Confirm this message by click the following link.</p>\n\t\t\t\t<p> </p>\n\t\t\t\t<p><a href='" . FUrl . "?{$reminder}' {$btnClass}> Reset Confirmation </a></p>\n\t\t\t\t<p> </p>\n\t\t\t\t<p>This message will be valid within 1-2 days so you do confirm to reset the password.<br>If you want to cancel this process, ignore this letter to Expired code in 1-2 days.</p>\n\t\t\t\t<p>Thankyou.</p>\n\t\t\t\t<p> </p>\n\t\t\t\t<p><b>" . siteConfig('site_title') . "</b><br>" . FUrl . "</p></font>"; } // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers $headers .= "To: {$qr['name']} <{$_POST['email']}>" . "\r\n"; $headers .= "From: " . siteConfig('site_name') . "<{$webmail}>" . "\r\n"; $headers .= "cc :" . "\r\n"; $headers .= "Bcc :" . "\r\n"; // Mail it $mail = @mail($to, $subject, $message, $headers); if ($mail) { echo "{ \"status\":\"1\" , \"alert\":\"" . alert('success', Password_Reset_Sent) . "\"}"; } else { echo "{ \"status\":\"0\" , \"alert\":\"" . alert('error', "System error : function mail() can not executed.") . "\"}"; } } else { echo "{ \"status\":\"0\" , \"alert\":\"" . alert('error', Email_Not_Registered) . "\"}"; } }
</header> <div id="time" class="panel-collapse collapse"> <table> <tr> <td class="row-title"><span class="tips" title="<?php echo Language_AdminPanel_tip; ?> "><?php echo Language; ?> </td> <td> <select name="lang" class="lang-select" style="width: 500px"> <?php include 'controller/countrycode.php'; $lang = siteConfig('lang'); $dir = opendir("system/lang"); $no = 1; while ($folder = readdir($dir)) { if ($folder == "." or $folder == "..") { continue; } if (preg_match("/[\\.]+php/i", $folder)) { $folder = str_replace(".php", "", $folder); if ($folder == $lang) { $selected_lang = 'selected'; } else { $selected_lang = ''; } echo "<option value=\"{$folder}\" {$selected_lang}>{$code[$folder]}\n\t\t\t\t\t\t\t\t\t</option>"; }
} } } else { echo 0; } if (isset($_POST['patching']) and $_POST['patching'] != false and $site_version != $latest_version and $xml) { $plink = $p['link']; $root = "../../.."; $newfile = "{$root}/tmp/patch_{$p['number']}.zip"; if (!file_exists("{$root}/tmp")) { mkdir("{$root}/tmp"); } if (copy($plink, $newfile)) { if (extractZip($newfile, "{$root}/tmp")) { $dapur = siteConfig('backend_folder'); if (siteConfig('backend_folder') != 'dapur') { copy_directory("{$root}/dapur", "{$root}/{$dapur}", true); } $db = new FQuery(); $db->connect(); $db->update(FDBPrefix . 'setting', array('value' => "{$p['number']}"), "name='version'"); $sup = $p['number']; @unlink("{$root}/installer.php"); ?> <script> $(document).ready(function() { $(".update-info").LoadingDot({ "speed": 500, "maxDots": 4, "word": " <?php echo Installing_patch . $p['number'];
$value = "Asia/Magadan"; echo "value ='{$value}'"; if (siteConfig('timezone') == "{$value}") { echo "selected"; } ?> >(UTC+12:00) New Caledonia</option> <option <?php $value = "Asia/Magadan"; echo "value ='{$value}'"; if (siteConfig('timezone') == "{$value}") { echo "selected"; } ?> >(UTC+12:00) Solomon Is.</option> <option <?php $value = "Pacific/Auckland"; echo "value ='{$value}'"; if (siteConfig('timezone') == "{$value}") { echo "selected"; } ?> >(UTC+12:00) Wellington</option> <option <?php $value = "Pacific/Tongatapu"; echo "value ='{$value}'"; if (siteConfig('timezone') == "{$value}") { echo "selected"; } ?> >(UTC+13:00) Nuku'alofa</option>
} if (is_dir("../themes/{$folder}")) { $no++; $spot_file = "../themes/{$folder}/theme_details.php"; if (file_exists($spot_file)) { include "{$spot_file}"; } else { $theme_version = "Error :: File <b>theme_details.php</b> not found in <b>{$folder}</b> "; $theme_author = "undefined"; $theme_date = "undefined"; $theme_name = $folder; $theme_name2 = strtolower($folder); } $theme_name2 = strtolower($theme_name); $active = ''; $c = siteConfig('site_theme'); $ac = Activate; if ($c == $folder) { $active = 'active'; $ac = Active; } $isi = "\n\t\t<div class='col-theme {$active}' data-name='{$theme_name}'>\n\t\t\t<div class='theme-box'>\n\t\t\t\t<div class='theme-image'>\n\t\t\t\t\n\t\t\t\t\t<button value='{$folder}' name='folder'>\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t<img src='../themes/{$folder}/{$theme_image}' >\n\t\t\t\t\t<div><span> Details </span></div>\n\t\t\t\t\t</button>\t\n\t\t\t\t</div>\n\t\t\t\t<div class='theme-title'>\t\t\t\n\t\t\t\t\t{$theme_name}\t\t\t\t\t\t\t\n\t\t\t\t\t<input type=\"button\" name=\"folder_themes\" data-name=\"{$folder}\" value=\"{$ac}\" class=\"theme-btn btn btn-success right\">\n\t\t\t\t</div>\n\t\t\t\t<span class='invisible'>{$theme_name2}</span>\n\t\t\t</div>\n\t\t</div>"; if ($c == $folder) { $act = $isi; } else { $thm .= $isi; } } } echo $act . $thm; closedir($dir);
if ($c) { alert('success', Success_backup_database, true); } } else { if (isset($_POST['backup_choose'])) { if (!empty($_POST['table'])) { $c = backup_tables($_POST['table']); if ($c) { alert('success', Success_backup_database, true); } } else { alert('error', Please_choose_table, true); } } } $SIZE_LIMIT = siteConfig('disk_space') * 1024 * 1024; // 5 GB $disk_used = folder_size("../"); $disk_remaining = $SIZE_LIMIT - $disk_used; ?> <script type="text/javascript"> $(document).ready(function() { $(".restore").click(function(e){ var filename = $(".filesql").val(); var extension = filename.replace(/^.*\./, ''); if (extension == filename) { extension = ''; } else { extension = extension.toLowerCase(); } if(extension == 'sql') {
if (isset($_GET['app'])) { $link = $_GET['app']; } else { $link = 'dashboard'; } ?> <!-- #menu --> <ul id="menu" class="collapse top affix content"> <?php $sql = $db->select(FDBPrefix . "menu", "*", "category='adminpanel' AND status=1 AND parent_id=0 " . Level_Access, "short ASC"); $no = 1; $sum = mysql_affected_rows(); while ($menu = mysql_fetch_array($sql)) { $subtitle = $pid = ""; $app = str_replace("http://" . siteConfig('backend_folder') . "/index.php", "", $menu['link']); $app = $menu['sub_name']; $ac = false; if (isset($_REQUEST['app'])) { $pid = FQuery('menu', "link LIKE '%{$_REQUEST['app']}%' AND status=1 AND category ='adminpanel'", "parent_id"); } if (isset($_REQUEST['app']) and $_REQUEST['app'] == $app or $menu['id'] == $pid) { $a = "panel active {$app}"; $ac = true; } else { $a = "panel "; } if (empty($menu['class'])) { $menu['class'] = 'icon-asterisk'; } if ($menu['app'] == "sperator") {
<?php /** * @version 2.0 * @package Fiyo CMS * @copyright Copyright (C) 2014 Fiyo CMS. * @license GNU/GPL, see LICENSE. **/ defined('_FINDEX_') or die('Access Denied'); //memuat file pendukung query dan fungsi lainya require_once '../config.php'; require_once '../system/query.php'; require_once '../system/function.php'; require_once '../system/user.php'; require_once '../system/site.php'; require_once 'function.php'; //check table setting $r = mysql_query("SHOW TABLES LIKE '" . FDBPrefix . "setting'"); mysql_num_rows($r) or die(alert("error", "Table setting is not found. Please check <b>DBPrefix</b> on file config.php!", true, true)); //set default timezone $time = siteConfig('timezone'); if ($time) { date_default_timezone_set(siteConfig('timezone')); } //memuat file bahasa jika ditemukan loadLang("system"); define('MetaDesc', siteConfig('site_desc')); define('MetaKeys', siteConfig('site_keys')); define('TitleValue', app_param('name')); //memuat file pendukung system dan file appss loadSystemApps();
function loadLang($dir = null) { $lang = siteConfig('lang'); if (empty($lang)) { $lang = 'en'; } $file = "{$dir}/lang/{$lang}.php"; if (file_exists($file)) { include "{$dir}/lang/{$lang}.php"; } else { echo "<div style='border: 2px solid #09f; font-size: 12px; font-family: Arial;background: #FCF0F0;border: 2px solid #F07272;padding: 5px; color : rgb(199, 69, 69);'><b>Error</b> : Failed to load \"{$file}\"</div>"; } }
if (isset($_SESSION['COMMENT_DELAY']) and $_SESSION['COMMENT_DELAY'] - time() > 0) { echo "{ \"status\":\"0\" , \"alert\":\"" . alert('error', You_alreay_sent_message) . "\"}"; } else { if (isset($name, $email, $post, $send, $to)) { $_SESSION['COMMENT_DELAY'] = 0; if (empty($name) or empty($email) or empty($post)) { echo "{ \"status\":\"0\" , \"alert\":\"" . alert('error', contact_Error) . "\"}"; } else { if (!filter_var($to, FILTER_VALIDATE_EMAIL)) { echo "{ \"status\":\"0\" , \"alert\":\"" . alert('error', contact_Error2) . "\"}"; } else { if (strlen($post) < 30) { echo "{ \"status\":\"0\" , \"alert\":\"" . alert('error', Message_too_short) . "\"}"; } else { // multiple recipients $site = siteConfig('site_name'); $to = "{$to}"; $subject = "{$subject} via {$site}"; $message = "{$post}<p> </p><p> </p><p> </p><p><small>Sent by <b> {$site}</b></small></p>"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= "To: <{$to}>\r\n"; $headers .= "From: {$name} <{$email}>" . "\r\n"; $mail = @mail($to, $subject, $message, $headers); if ($mail) { echo "{ \"status\":\"1\" , \"alert\":\"" . alert('success', contact_Info) . "\"}"; $_SESSION['COMMENT_DELAY'] = time() + 180; } else { echo "{ \"status\":\"0\" , \"alert\":\"" . alert('error', contact_Error3) . "\"}"; } }
} else { $action = "\n\t\t\t\t<div class='switch s-icon uninstall activator' id='{$folder}'>\n\t\t\t\t\t<label class='cb-default red'><span>\n\t\t\t\t\t<i class='icon-remove-sign'></i> Uninstall</span></label>\t\t\t\t\n\t\t\t\t</div>"; } echo "<tr><td><a class=\"atheme\">{$theme_name}</td>"; echo "<td>Site Theme</td>\n\t\t\t<td>{$theme_author}</td>\n\t\t\t<td align='right'>{$action}</td>\n\t\t\t</tr>"; } } closedir($dir); $dir = opendir("../{$folback}/themes"); while ($folder = readdir($dir)) { if ($folder == "." or $folder == "..") { continue; } if (is_dir("../{$folback}/themes/{$folder}")) { include "../{$folback}/themes/{$folder}/theme_details.php"; if (siteConfig('admin_theme') == "{$folder}") { $action = "\n\t\t\t\t\t<div class='switch s-icon activator'>\n\t\t\t\t\t\t<label class='cb-default disable'><span>\n\t\t\t\t\t\t<i class='icon-minus-sign'></i> Inused</span></label>\n\t\t\t\t\t</div>"; } else { $action = "\n\t\t\t\t\t<div class='switch s-icon uninstall activator' id='{$folder}.atm'>\n\t\t\t\t\t\t<label class='cb-default red'><span>\n\t\t\t\t\t\t<i class='icon-remove-sign'></i> Uninstall</span></label>\t\t\t\t\n\t\t\t\t\t</div>"; } echo "<tr>\t\n\t\t\t\t\t<td><a class=\"atheme\">{$theme_name}</td>"; echo "<td>Admin Theme</td><td>{$theme_author}</td><td align='right'>{$action}</td></tr>"; } } closedir($dir); ?> </table> <div class="app_link tabs"> <a class="btn apps " href="?app=config&view=apps" title="<?php echo Manage_Apps;
<?php /** * @name Fi User * @version 2.0 * @package Fiyo CMS * @copyright Copyright (C) 2012 Fiyo CMS. * @license GNU/GPL, see LICENSE.txt */ defined('_FINDEX_') or die('Access Denied'); if (siteConfig('member_registration')) { $new = "<a class='register' href='" . make_permalink('?app=user&view=register') . "'>Register</a>"; } ?> <div id="user"> <h1>Password Reminder</h1> <form action="" method="post"> <?php echo userNotice; ?> <p class="user-desc"><?php echo user_Password_Reminder; ?> </p> <div> <span>Email</span> <input type="text" name="email" /></div> <div class="user-link"> <span> </span> <input type="submit" name="forgot" value="<?php echo Send; ?>
function pdfFile() { $link = pdfInfo('link'); $hits = pdfInfo('pdfed'); if (substr_count($link, "http://") > 0) { $file = "{$link}"; } else { $file = FUrl . "{$link}"; } /********** update pdfed hist ************/ if (!file_exists($file)) { $file = "http://" . siteConfig('site_url') . "{$link}"; } header("Content-Disposition: attachment; filename=\"" . basename($file) . "\""); header("Content-Length: " . filesize($file)); header("Content-Type: application/octet-stream;"); readfile($file); }
function sysAdminApps() { redirect('../' . siteConfig('backend_folder')); /* blank line */ }
define("Database_Settings", "Pengaturan Database"); define("Choose_table", "Pilih tabel"); define("Please_choose_table", "Pilih tabel terlebih dahulu!"); /************** Member_Settings *****************/ define("Member_Settings", "Pengaturan Member"); /************** Media_Settings *****************/ define("Media_Settings", "Pengaturan Media Penyimpanan"); define("Allow_File_Extentions", "File Yang Diizinkan"); define("Allow_File_Extentions_tip", "File yang diizinkan untuk diupload ke media penyimpanan tanpa titik (.) dan dibatasi dengan spasi"); define("Disk_Space", "Ruang Web Disk"); define("Disk_Space_tip", "Ruang disk yang disediakan"); define("Max_File_Size", "Ukuran File Maksimum"); define("Max_File_Size_tip", "Maksimum ukuran file yang boleh di upload ke media penyimpanan."); define("Media_Theme", "Tampilan Media"); define("Media_Theme_tip", "Tampilan media penyimpanan"); define("Max_upload_file_not_allowed", "Ukuran file terlalu besar <small>(max : " . format_size(siteConfig('file_size') * 1024) . ")</small>"); /************** BackEnd_Settings *****************/ define("Language_and_Time", "Bahasa dan Waktu"); define("Folder_AdminPanel", "Admin Panel"); define("Folder_AdminPanel_tip", "Nama Folder untuk Admin Panel"); define("Folder_unchange", "Folder sedang digunakan atau diproteksi"); define("Language_AdminPanel_tip", "Pilihan bahasa untuk AdminPanel"); define("Config_helper", "<h3>Konfigurasi Situs</h3><p>Halaman Konfigurasi Situs merupakan pusat kontrol situs.</p>"); define("Time_Zone", "Zona Waktu"); define("Time_Zone_tip", "Zona waktu server"); define("Fiyo_Version", "Versi"); define("Fiyo_Version_tip", "Versi Fiyo yang digunakan"); define("Default_Group_Member_tip", "Group umum saat awal regristrasi"); define("Default_Group_Member", "Default Grup Member"); /***************** Backup ***********************/ define("Success_backup_database", "Cadangan database berhasil dibuat");
<?php /** * @version 2.0 * @package Fiyo CMS * @copyright Copyright (C) 2014 Fiyo CMS. * @license GNU/GPL, see LICENSE. **/ defined('_FINDEX_') or die('Access Denied'); $new_member = siteConfig('new_member'); if ($new_member) { $enpar1 = "selected checked"; $dispar1 = ""; } else { $dispar1 = "selected checked"; $enpar1 = ""; } ?> <script type="text/javascript" charset="utf-8"> $(document).ready(function() { $(".activa label").click(function(){ var parent = $(this).parents('.switch'); var id = $('.number',parent).attr('value'); var value = $('.type',parent).attr('value'); if(value == 1) value = 0; else value = 1; $.ajax({ url: "apps/app_user/controller/status.php", data: "stat="+value+"&id="+id, success: function(data){ $('#type',parent).attr('value',0);
<?php /** * @version 1.5.0 * @package Related Article * @copyright Copyright (C) 2012 Fiyo CMS. * @license GNU/GPL, see LICENSE.txt **/ defined('_FINDEX_') or die('Access Denied'); $addons['name'] = 'Related Article'; $addons['type'] = 'modules'; $addons['folder'] = 'mod_article_related'; if (siteConfig('lang') == 'id') { $addons['info'] = '<img src="../modules/mod_article_related/theme/logo.png" align="left" /><h1>Modul Artikel Terkait berhasil diinstal.</h1>Modul ini membantu pengunjung website untuk menemukan artikel atau bacaan terkait.<br>Anda bisa mengaktifkan dan melakukan konfigurasi melaui <a href="?app=module" class="link">Module Manager</a>'; } else { $addons['info'] = '<img src="../modules/mod_article_related/theme/logo.png" align="left" /><h1>Related Article successfuly installed</h1>This module help visitors to find related content ot article.<br>You can enable and configure through <a href="?app=module" class="link">Module Manager</a>'; }
function forgot_password() { if (isset($_POST['forgot_password'])) { $db = new FQuery(); $sql = $db->select(FDBPrefix . "user", "*", "status=1 AND email='{$_POST['email']}'"); $qr = mysql_affected_rows(); $qrs = mysql_fetch_array($sql); if ($qr < 1) { alert('error', Remember_Error); } else { $reminder = randomString(32); $_SESSION['USER_REMINDER'] = $reminder; $_SESSION['USER_REMINDER_ID'] = $qrs['id']; $reminder = "app=user&res={$reminder}"; $to = "{$_POST['email']}"; $webmail = siteConfig('site_mail'); $domain = str_replace("/", "", FUrl()); if (empty($webmail)) { $webmail = "no-reply@{$domain}"; } if (siteConfig('lang') == 'id') { $subject = 'Konfirmasi Reset Password'; $message = "<font color='#333'>\n\t\t\t<p>Halo, {$qrs['name']}</p> \n\t\t\t<p>Anda telah meminta kami untuk mengirimkan password baru.</p>\n\t\t\t<p>Konfirmasi pesan ini dengan klik link konfirmasi berikut.</p>\n\t\t\t<p> </p>\n\t\t\t<p><a href='" . FUrl . "?{$reminder}'>" . FUrl . "?{$reminder}</a></p>\n\t\t\t<p> </p>\n\t\t\t<p>Pesan ini akan valid dalam 1-2 hari hingga Anda melakukan konfirmasi untuk reset password.</p>\n\t\t\t<p>Jika Anda ingin membatalkan proses ini, abaikan saja email ini hingga kode kadaluarsa dalam 1-2 hari.</p>\n\t\t\t<p>Terimakasih.</p>\n\t\t\t<p> </p>\n\t\t\t<p> </p>\n\t\t\t<p><b>" . SiteTitle . "</b><br>" . FUrl . "</p></font>"; } else { $subject = 'Password Reset Confirmation'; $message = "<font color='#333'>\n\t\t\t<p>Hello, {$qrs['name']}</p> \n\t\t\t<p>You have asked us to send you a new password.</p>\n\t\t\t<p>Confirm this message by click the following link.</p>\n\t\t\t<p> </p>\n\t\t\t<p><a href='" . FUrl . "?{$reminder}'>" . FUrl . "?{$reminder}</a></p>\n\t\t\t<p> </p>\n\t\t\t<p>This message will be valid within 1-2 days so you do confirm to reset the password.</p>\n\t\t\t<p>If you want to cancel this process, ignore this letter to Expired code in 1-2 days.</p>\n\t\t\t<p>Thankyou.</p>\n\t\t\t<p> </p>\n\t\t\t<p> </p>\n\t\t\t<p><b>" . SiteTitle . "</b><br>" . FUrl . "</p></font>"; } // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers $headers .= "To: {$qrs['name']} <{$_POST['email']}>" . "\r\n"; $headers .= "From: " . SiteTitle . "<{$webmail}>" . "\r\n"; $headers .= "cc :" . "\r\n"; $headers .= "Bcc :" . "\r\n"; // Mail it $mail = @mail($to, $subject, $message, $headers); if ($mail) { alert('info', Password_sent_to_mail); htmlRedirect("index.php", 3); } else { alert('error', Failed_send_mail); } } } }