| 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_projetos/sopizzas/application/helpers/ |
Upload File : |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if ( ! function_exists('makeSEOurl')) {
function makeSEOurl($string) {
//Unwanted: {UPPERCASE} ; / ? : @ & = + $ , . ! ~ * ' ( )
$string = strtolower(trim($string));
//Strip any unwanted characters
$string = str_replace('/','-',$string);
$string = preg_replace("/[^a-z0-9_\s-]/", "", $string);
//Clean multiple dashes or whitespaces
$string = preg_replace("/[\s-]+/", " ", $string);
//Convert whitespaces and underscore to dash
$string = preg_replace("/[\s_]/", "-", $string);
return $string;
}
}
if ( ! function_exists('ccEncrypt')) {
function ccEncrypt($password, $time){
//appending padding characters
$newPass = rand(0,9) . rand(0,9);
$c = 1;
while ($c < 15 && (int)substr($newPass,$c-1,1) + 1 != (int)substr($newPass,$c,1)){
$newPass .= rand(0,9);
$c++;
}
$newPass .= $password;
//applying XOR
$newSeed = md5(SEED . $time);
$passLength = strlen($newPass);
while (strlen($newSeed) < $passLength) $newSeed.= $newSeed;
$result = (substr($newPass,0,$passLength) ^ substr($newSeed,0,$passLength));
return base64_encode($result);
}
}
if ( ! function_exists('ccDecrypt')) {
function ccDecrypt($password, $time){
$b64decoded = base64_decode($password);
//applying XOR
$newSeed = md5(SEED . $time);
$passLength = strlen($b64decoded);
while (strlen($newSeed) < $passLength) $newSeed.= $newSeed;
$original_password = (substr($b64decoded,0,$passLength) ^ substr($newSeed,0,$passLength));
//removing padding
$c = 1;
while($c < 15 && (int)substr($original_password,$c-1,1) + 1 != (int)substr($original_password,$c,1)){
$c++;
}
return substr($original_password,$c+1);
}
}