| 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/mundotennis/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();
$action = $routes[1];
$user = User::_info();
$ui->assign('user', $user);
switch ($action) {
case 'no_file':
echo '<?php'.PHP_EOL;
break;
case 'language.php':
$contents = file_get_contents($ib_language_file_path);
if ($contents === false) {
ib_die('// Unable to Open File: '.$ib_language_file_path);
} else {
echo $contents;
}
break;
case 'invoice_printer.php':
$file_path = 'application/lib/invoices/render.php';
$contents = file_get_contents($file_path);
if ($contents === false) {
ib_die('// Unable to Open File: '.$file);
} else {
echo $contents;
}
break;
case 'invoice_pdf.php':
$file_path = 'application/lib/invoices/pdf-x2.php';
$contents = file_get_contents($file_path);
if ($contents === false) {
ib_die('// Unable to Open File: '.$file);
} else {
echo $contents;
}
break;
case 'save':
$file = _post('file');
if($file == 'no_file'){
i_close($_L['Please Choose a File']);
}
if($_app_stage == "Demo"){
ib_die('Unable to Save file in Demo Mode');
}
$codes = $_POST['codes'];
$available_files_to_edit = array(
'language.php' => 'application/lan/' . $config['language'] . '/common.lan.php',
'invoice_printer.php' => 'application/lib/invoices/render.php',
'invoice_pdf.php' => 'application/lib/invoices/pdf-x2.php'
);
if(isset($available_files_to_edit[$file])){
$path = $available_files_to_edit[$file];
if(file_exists($path)){
$fp = fopen($path, 'w');
fwrite($fp, $codes);
fclose($fp);
echo $_L['Data Updated'];
}
else{
echo 'Failed';
}
}
else{
i_close('Invalid File '.$file);
}
break;
default:
echo '// File not found.';
}