Kernel : Linux webm039.cluster003.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Disable function : _dyuweyrj4,_dyuweyrj4r,dl
Safe mode : OFF
Host : www.mehariclubdefrance.com | Server ip : 10.3.20.37 | Your ip : 3.135.190.163 | Time @ Server : 12 May 2025 16:17:37
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/meharicl/home2/meharicl/www/recensement2/

HOME about upload exec mass file domain root vuln newfile newfolder kill me

File Path : /home/meharicl/home2/meharicl/www/recensement2/recensement_variation.php

<?php //Include Common Files @1-33FCAAF1 define("RelativePath", "."); define("PathToCurrentPage", "/"); define("FileName", "recensement_variation.php"); include_once(RelativePath . "/Common.php"); include_once(RelativePath . "/Template.php"); include_once(RelativePath . "/Sorter.php"); include_once(RelativePath . "/Navigator.php"); //End Include Common Files //Include Page implementation @2-11B45D65 include_once(RelativePath . "/top.php"); //End Include Page implementation class clsGridgrdVariation { //grdVariation class @12-A79BA348 //Variables @12-6E51DF5A // Public variables public $ComponentType = "Grid"; public $ComponentName; public $Visible; public $Errors; public $ErrorBlock; public $ds; public $DataSource; public $PageSize; public $IsEmpty; public $ForceIteration = false; public $HasRecord = false; public $SorterName = ""; public $SorterDirection = ""; public $PageNumber; public $RowNumber; public $ControlsVisible = array(); public $CCSEvents = ""; public $CCSEventResult; public $RelativePath = ""; public $Attributes; // Grid Controls public $StaticControls; public $RowControls; //End Variables //Class_Initialize Event @12-F1CE800F function clsGridgrdVariation($RelativePath, & $Parent) { global $FileName; global $CCSLocales; global $DefaultDateFormat; $this->ComponentName = "grdVariation"; $this->Visible = True; $this->Parent = & $Parent; $this->RelativePath = $RelativePath; $this->Errors = new clsErrors(); $this->ErrorBlock = "Grid grdVariation"; $this->Attributes = new clsAttributes($this->ComponentName . ":"); $this->DataSource = new clsgrdVariationDataSource($this); $this->ds = & $this->DataSource; $this->PageSize = CCGetParam($this->ComponentName . "PageSize", ""); if(!is_numeric($this->PageSize) || !strlen($this->PageSize)) $this->PageSize = 1000; else $this->PageSize = intval($this->PageSize); if ($this->PageSize > 1000) $this->PageSize = 1000; if($this->PageSize == 0) $this->Errors->addError("<p>Form: Grid " . $this->ComponentName . "<BR>Error: (CCS06) Invalid page size.</p>"); $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1)); if ($this->PageNumber <= 0) $this->PageNumber = 1; $this->Nbmemedepartement = new clsControl(ccsLabel, "Nbmemedepartement", "Nbmemedepartement", ccsInteger, "", CCGetRequestParam("Nbmemedepartement", ccsGet, NULL), $this); $this->num_departement = new clsControl(ccsLabel, "num_departement", "num_departement", ccsText, "", CCGetRequestParam("num_departement", ccsGet, NULL), $this); $this->departement_nom = new clsControl(ccsLabel, "departement_nom", "departement_nom", ccsText, "", CCGetRequestParam("departement_nom", ccsGet, NULL), $this); $this->lblDiff = new clsControl(ccsLabel, "lblDiff", "lblDiff", ccsText, "", CCGetRequestParam("lblDiff", ccsGet, NULL), $this); $this->lblDiff->HTML = true; $this->lblClassNew = new clsControl(ccsLabel, "lblClassNew", "lblClassNew", ccsText, "", CCGetRequestParam("lblClassNew", ccsGet, NULL), $this); } //End Class_Initialize Event //Initialize Method @12-90E704C5 function Initialize() { if(!$this->Visible) return; $this->DataSource->PageSize = & $this->PageSize; $this->DataSource->AbsolutePage = & $this->PageNumber; $this->DataSource->SetOrder($this->SorterName, $this->SorterDirection); } //End Initialize Method //Show Method @12-D1F31B43 function Show() { $Tpl = CCGetTemplate($this); global $CCSLocales; if(!$this->Visible) return; $this->RowNumber = 0; $this->DataSource->Parameters["expr25"] = 1; $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this); $this->DataSource->Prepare(); $this->DataSource->Open(); $this->HasRecord = $this->DataSource->has_next_record(); $this->IsEmpty = ! $this->HasRecord; $this->Attributes->Show(); $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this); if(!$this->Visible) return; $GridBlock = "Grid " . $this->ComponentName; $ParentPath = $Tpl->block_path; $Tpl->block_path = $ParentPath . "/" . $GridBlock; if (!$this->IsEmpty) { $this->ControlsVisible["Nbmemedepartement"] = $this->Nbmemedepartement->Visible; $this->ControlsVisible["num_departement"] = $this->num_departement->Visible; $this->ControlsVisible["departement_nom"] = $this->departement_nom->Visible; $this->ControlsVisible["lblDiff"] = $this->lblDiff->Visible; $this->ControlsVisible["lblClassNew"] = $this->lblClassNew->Visible; while ($this->ForceIteration || (($this->RowNumber < $this->PageSize) && ($this->HasRecord = $this->DataSource->has_next_record()))) { $this->RowNumber++; if ($this->HasRecord) { $this->DataSource->next_record(); $this->DataSource->SetValues(); } $Tpl->block_path = $ParentPath . "/" . $GridBlock . "/Row"; $this->num_departement->SetValue($this->DataSource->num_departement->GetValue()); $this->departement_nom->SetValue($this->DataSource->departement_nom->GetValue()); $this->Attributes->SetValue("rowNumber", $this->RowNumber); $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow", $this); $this->Attributes->Show(); $this->Nbmemedepartement->Show(); $this->num_departement->Show(); $this->departement_nom->Show(); $this->lblDiff->Show(); $this->lblClassNew->Show(); $Tpl->block_path = $ParentPath . "/" . $GridBlock; $Tpl->parse("Row", true); } } else { // Show NoRecords block if no records are found $this->Attributes->Show(); $Tpl->parse("NoRecords", false); } $errors = $this->GetErrors(); if(strlen($errors)) { $Tpl->replaceblock("", $errors); $Tpl->block_path = $ParentPath; return; } $Tpl->parse(); $Tpl->block_path = $ParentPath; $this->DataSource->close(); } //End Show Method //GetErrors Method @12-A5D5CF84 function GetErrors() { $errors = ""; $errors = ComposeStrings($errors, $this->Nbmemedepartement->Errors->ToString()); $errors = ComposeStrings($errors, $this->num_departement->Errors->ToString()); $errors = ComposeStrings($errors, $this->departement_nom->Errors->ToString()); $errors = ComposeStrings($errors, $this->lblDiff->Errors->ToString()); $errors = ComposeStrings($errors, $this->lblClassNew->Errors->ToString()); $errors = ComposeStrings($errors, $this->Errors->ToString()); $errors = ComposeStrings($errors, $this->DataSource->Errors->ToString()); return $errors; } //End GetErrors Method } //End grdVariation Class @12-FCB6E20C class clsgrdVariationDataSource extends clsDBcnxRecensement { //grdVariationDataSource Class @12-39FDFB04 //DataSource Variables @12-CF39B671 public $Parent = ""; public $CCSEvents = ""; public $CCSEventResult; public $ErrorBlock; public $CmdExecution; public $CountSQL; public $wp; // Datasource fields public $num_departement; public $departement_nom; //End DataSource Variables //DataSourceClass_Initialize Event @12-47FA8A57 function clsgrdVariationDataSource(& $Parent) { $this->Parent = & $Parent; $this->ErrorBlock = "Grid grdVariation"; $this->Initialize(); $this->num_departement = new clsField("num_departement", ccsText, ""); $this->departement_nom = new clsField("departement_nom", ccsText, ""); } //End DataSourceClass_Initialize Event //SetOrder Method @12-0B224C6B function SetOrder($SorterName, $SorterDirection) { $this->Order = "Nbmemedepartement desc, departement_nom"; $this->Order = CCGetOrder($this->Order, $SorterName, $SorterDirection, ""); } //End SetOrder Method //Prepare Method @12-89CE9422 function Prepare() { global $CCSLocales; global $DefaultDateFormat; $this->wp = new clsSQLParameters($this->ErrorBlock); $this->wp->AddParameter("1", "expr25", ccsInteger, "", "", $this->Parameters["expr25"], 0, false); } //End Prepare Method //Open Method @12-0B96C6BF function Open() { $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect", $this->Parent); $this->CountSQL = "SELECT COUNT(*) FROM (rec_departements LEFT JOIN rec_mehari ON\n" . "rec_mehari.departement_id = rec_departements.departement_id) LEFT JOIN rec_regions ON\n" . "rec_departements.region_id = rec_regions.region_id\n" . "WHERE rec_regions.pays_id = " . $this->SQLValue($this->wp->GetDBValue("1"), ccsInteger) . "\n" . "GROUP BY num_departement, departement_nom"; $this->SQL = "SELECT count(id) AS Nbmemedepartement, num_departement, departement_nom, rec_mehari.departement_id\n" . "FROM (rec_departements LEFT JOIN rec_mehari ON\n" . "rec_mehari.departement_id = rec_departements.departement_id) LEFT JOIN rec_regions ON\n" . "rec_departements.region_id = rec_regions.region_id\n" . "WHERE rec_regions.pays_id = " . $this->SQLValue($this->wp->GetDBValue("1"), ccsInteger) . "\n" . "GROUP BY num_departement, departement_nom {SQL_OrderBy}"; $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect", $this->Parent); if ($this->CountSQL) $this->RecordsCount = CCGetDBValue(CCBuildSQL($this->CountSQL, $this->Where, ""), $this); else $this->RecordsCount = "CCS not counted"; $this->query($this->OptimizeSQL(CCBuildSQL($this->SQL, $this->Where, $this->Order))); $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteSelect", $this->Parent); } //End Open Method //SetValues Method @12-AC5F08D9 function SetValues() { $this->num_departement->SetDBValue($this->f("num_departement")); $this->departement_nom->SetDBValue($this->f("departement_nom")); } //End SetValues Method } //End grdVariationDataSource Class @12-FCB6E20C //Initialize Page @1-B12C96CD // Variables $FileName = ""; $Redirect = ""; $Tpl = ""; $TemplateFileName = ""; $BlockToParse = ""; $ComponentName = ""; $Attributes = ""; // Events; $CCSEvents = ""; $CCSEventResult = ""; $TemplateSource = ""; $FileName = FileName; $Redirect = ""; $TemplateFileName = "recensement_variation.html"; $BlockToParse = "main"; $TemplateEncoding = "UTF-8"; $ContentType = "text/html"; $PathToRoot = "./"; $PathToRootOpt = ""; $Scripts = "|"; $Charset = $Charset ? $Charset : "utf-8"; //End Initialize Page //Include events file @1-46C6DE93 include_once("./recensement_variation_events.php"); //End Include events file //Before Initialize @1-E870CEBC $CCSEventResult = CCGetEvent($CCSEvents, "BeforeInitialize", $MainPage); //End Before Initialize //Initialize Objects @1-15D4D407 $DBcnxRecensement = new clsDBcnxRecensement(); $MainPage->Connections["cnxRecensement"] = & $DBcnxRecensement; $Attributes = new clsAttributes("page:"); $Attributes->SetValue("pathToRoot", $PathToRoot); $MainPage->Attributes = & $Attributes; // Controls $top = new clstop("", "top", $MainPage); $top->Initialize(); $grdVariation = new clsGridgrdVariation("", $MainPage); $MainPage->top = & $top; $MainPage->grdVariation = & $grdVariation; $grdVariation->Initialize(); $ScriptIncludes = ""; $SList = explode("|", $Scripts); foreach ($SList as $Script) { if ($Script != "") $ScriptIncludes = $ScriptIncludes . "<script src=\"" . $PathToRoot . $Script . "\" type=\"text/javascript\"></script>\n"; } $Attributes->SetValue("scriptIncludes", $ScriptIncludes); BindEvents(); $CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize", $MainPage); if ($Charset) { header("Content-Type: " . $ContentType . "; charset=" . $Charset); } else { header("Content-Type: " . $ContentType); } //End Initialize Objects //Initialize HTML Template @1-28F2FDD6 $CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView", $MainPage); $Tpl = new clsTemplate($FileEncoding, $TemplateEncoding); if (strlen($TemplateSource)) { $Tpl->LoadTemplateFromStr($TemplateSource, $BlockToParse, "UTF-8"); } else { $Tpl->LoadTemplate(PathToCurrentPage . $TemplateFileName, $BlockToParse, "UTF-8"); } $Tpl->SetVar("CCS_PathToRoot", $PathToRoot); $Tpl->block_path = "/$BlockToParse"; $CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow", $MainPage); $Attributes->SetValue("pathToRoot", ""); $Attributes->Show(); //End Initialize HTML Template //Execute Components @1-DC3EC8FB $top->Operations(); //End Execute Components //Go to destination page @1-BC151CA8 if($Redirect) { $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage); $DBcnxRecensement->close(); header("Location: " . $Redirect); $top->Class_Terminate(); unset($top); unset($grdVariation); unset($Tpl); exit; } //End Go to destination page //Show Page @1-EF3EFD2D $top->Show(); $grdVariation->Show(); $Tpl->block_path = ""; $Tpl->Parse($BlockToParse, false); if (!isset($main_block)) $main_block = $Tpl->GetVar($BlockToParse); $CCSEventResult = CCGetEvent($CCSEvents, "BeforeOutput", $MainPage); if ($CCSEventResult) echo $main_block; //End Show Page //Unload Page @1-89790BF8 $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage); $DBcnxRecensement->close(); $top->Class_Terminate(); unset($top); unset($grdVariation); unset($Tpl); //End Unload Page ?>