| Server IP : 162.214.74.102 / Your IP : 216.73.217.80 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/public_html/lrsys_apps/meridional/application/controllers/ |
Upload File : |
<?php
// *************************************************************************
// * *
// * iBilling - Accounting, Billing Software *
// * Copyright (c) Sadia Sharmin. All Rights Reserved *
// * *
// *************************************************************************
// * *
// * Email: sadiasharmin3139@gmail.com *
// * Website: http://www.sadiasharmin.com *
// * *
// *************************************************************************
// * *
// * This software is furnished under a license and may be used and copied *
// * only in accordance with the terms of such license and with the *
// * inclusion of the above copyright notice. *
// * If you Purchased from Codecanyon, Please read the full License from *
// * here- http://codecanyon.net/licenses/standard *
// * *
// *************************************************************************
//it will handle all settings
_auth();
$ui->assign('_title', $_L['Appearance'].'- '. $config['CompanyName']);
$ui->assign('_st', $_L['Appearance']);
$ui->assign('_application_menu', 'appearance');
$action = $routes[1];
$user = User::_info();
$ui->assign('user', $user);
switch ($action) {
case 'themes':
// by Max Mendez [ github user Akiracr ]
//Scan for themes
$themes = glob('ui/theme/*');
$themes = array_map('basename', array_filter($themes, 'is_dir'));
$ui->assign('themes', $themes);
$ui->display('appearance_themes.tpl');
break;
case 'ui':
$ca = new Ib_Animate();
$ca_options = $ca->options($config['contentAnimation']);
$ui->assign('ca_options',$ca_options);
$ui->assign('xfooter', Asset::js(array('settings/appearance')));
$ui->display('appearance_user_interface.tpl');
break;
case 'customize':
$ui->display('appearance_customize.tpl');
break;
case 'editor':
$ui->assign('xfooter',Asset::js(array('ace/ace','ace/ext-modelist','settings/editor')));
$ui->assign('_include','box');
$ui->display('appearance_editor.tpl');
break;
case 'themes_post':
if($_app_stage == 'Demo'){
r2(U . 'appearance/themes/', 'e', 'Sorry! This option is disabled in the demo mode.');
}
$theme = _post('theme');
$nstyle = _post('nstyle');
$d = ORM::for_table('sys_appconfig')->where('setting','theme')->find_one();
$d->value = $theme;
$d->save();
$d = ORM::for_table('sys_appconfig')->where('setting','nstyle')->find_one();
$d->value = $nstyle;
$d->save();
r2(U.'appearance/themes/','s',$_L['Settings Saved Successfully']);
break;
case 'edit':
break;
default:
echo 'action not defined';
}