AnonSec Team
Server IP : 10.128.40.6  /  Your IP : 216.73.216.233
Web Server : Apache
System : Linux webd006.cluster128.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : logmcpe ( 111175)
PHP Version : 7.3.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0705) :  /home/logmcpe/www/mobile/includes/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/logmcpe/www/mobile/includes/stable_functions_planning_part2-V3.php
<?php
define ('TABLE_ABSENCES', 'absence');
define ('TABLE_AGENCE', 'agence') ;
define ('TABLE_ALERTE', 'alerte') ;
define ('TABLE_AVOIR', 'avoir') ;
define ('TABLE_AUTRES', 'autres') ;
define ('TABLE_CAUSES', 'cause_absence') ;
define ('TABLE_CANDI', 'candidature') ;
define ('TABLE_CLES', 'cles') ;
define ('TABLE_CLIC', 'auto');
define ('TABLE_CONJ', 'conjoint');
define ('TABLE_BURO', 'bureau');
define ('TABLE_LOGE', 'logement');
define ('TABLE_INTERDI', 'interdiction');
define ('TABLE_CLIENT', 'client') ;
define ('TABLE_CLIENT_SUIVI', 'client_suivi') ;
define ('TABLE_SUIVI_BIAIS', 'suivi_biais') ;
define ('TABLE_SUIVI', 'suivi') ;
define ('TABLE_COMP', 'complement') ;
define ('TABLE_CONFIG', 'config') ;
define ('TABLE_CONFLIT', 'conflit') ;
define ('TABLE_CONTRAT', 'contrat') ;
define ('TABLE_DISPO', 'disponibilite') ;
define ('TABLE_DEM', 'demande') ;
define ('TABLE_SUIVIC', 'suvi_client');
define ('TABLE_EXCEPT', 'exception') ;
define ('TABLE_FACT', 'facture') ;
define ('TABLE_FACT_TEMP', 'facture_temp') ;
define ('TABLE_FORFAITS', 'forfait');
define ('TABLE_INTERV', 'intervenant') ;
define ('TABLE_RELANC', 'relance') ;
define ('TABLE_MESS', 'message') ;
define ('TABLE_OFFRE', 'offre') ;
define ('TABLE_PAIEMENT', 'paiement') ;
define ('TABLE_PART', 'partenaire') ;
define ('TABLE_PREST', 'prestation') ;
define ('TABLE_PRESTA_MODIF', 'presta_modif') ;
define ('TABLE_PROSPE', 'prospect') ;
define ('TABLE_PLNG', 'planning') ;
define ('TABLE_PUB', 'pub') ;
define ('TABLE_REGLEMENT', 'reglement') ;
define ('TABLE_STATUS_P', 'prospect_status') ;
define ('TABLE_STATUS_C', 'candi_status') ;
define ('TABLE_SMIC', 'smic') ;
define ('TABLE_USER', 'users') ;
define ('TABLE_VILLE', 'ville') ;
define ('TABLE_TACHES', 'taches') ;
define ('TABLE_PROJETS', 'projets') ;
// define ('TABLE_INTERDI', 'interdiction') ;
 

define ('MALADIE', '1') ;
define ('PERSO', '2') ;
define ('FERIE', '3') ;
define ('PERSONNE', '') ;





function int2date ($int, $format = 'd/m/Y')
{
	static $corresp = array(array('d','m','Y','M','l', 'D', 'F'), array('%d','%m','%Y','%M','%l', '%D', '%F'), array('%d', '%m', '%Y', '%b', '%A', '%a', '%B')) ;
	if (!$int)
		return '';
	///setlocale(LC_TIME, array('fr_fr', 'fr_FR', 'fr', 'FR'));
	if (ereg("WIN", PHP_OS)) setlocale (LC_TIME, "french");
	else if (ereg("BSD", PHP_OS)) setlocale (LC_TIME, "fr_FR.ISO8859-1");
	else setlocale (LC_TIME, "fr_FR");
	$date = strftime(str_replace($corresp[1], $corresp[2], preg_replace('/([^\\\\]|^)(['.join('', $corresp[0]).'%])/', '\1%\2', $format)), int2time($int)) ;
	return $date ;
}

function addDuree ($heure, $duree)
{
	sscanf(sprintf('%06d', $heure), '%02d%02d%02d', $h, $m, $s) ;
	$m += $duree ;
	while($m >= 60)
	{
		$m -= 60 ;
		$h ++ ;
	}
	return sprintf('%02d%02d%02d', $h, $m, $s) ;
}
function int2time ($int)
{
	return mktime(0,0,0,substr($int, 4, 2),substr($int,6,2),substr($int,0,4));
}
function time2int ($time)
{
	return date('Ymd', $time) ;
}
function date2int ($yass)
{
	
	$jour = substr($yass,0,2);
$mois = substr($yass,3,2);
$annee = substr($yass,6,4);
	
	return date('Ymd', mktime(0,0,0,$mois, $jour, $annee)) ;
}

function int2heure($int, $format = 'H\hi')
{
	sscanf(sprintf('%06d', $int), '%02d%02d%02d', $h, $m, $s) ;
	return date($format, 24*3600+$h*3600 + $m*60 + $s - 3600) ;
}


function add_day($time, $day=1)
{
	$time += $day*24*3600 ;
	if(date('H', $time) == 23)
		$time += 3600 ;
	if(date('H', $time) == 1)
		$time -= 3600 ;
	return $time ;
}



?>

AnonSec - 2021