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/MCPRO/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/logmcpe/www/MCPRO/admin_cal.php
<?php
include_once 'code/init.php';
if(!empty($_POST))
{
	foreach ($_POST as $key => $value)
	{
		list($nb) = dbi_fetch_row(dbi_query("SELECT count(*) FROM ".TABLE_CONFIG." where agence_id = $agence AND `key` = '".addslashes($key)."'")) ;
		if($nb)
			dbi_query("UPDATE ".TABLE_CONFIG." SET value='".addslashes($value)."' where agence_id = $agence AND `key` = '".addslashes($key)."'") ;
		else
			dbi_query("INSERT INTO ".TABLE_CONFIG." (`key`, value, agence_id) VALUES ('".addslashes($key)."', '".addslashes($value)."', $agence)") ;
	}
}
print_header ();
$q = dbi_query("SELECT * FROM ".TABLE_CONFIG." WHERE agence_id=$agence") ;
$conf = array() ;
while($r = dbi_fetch_row($q))
	$conf[$r['key']] = $r['value'] ;
?>
<script language="javascript" type="text/javascript">
<!--
function color (name, value)
{
	open('colors.php?elem='+name+'&color='+value, 'color',
		'width=361,height=435,top='+((screen.height-435)/2)+',left='+((screen.width-361)/2)+',status=0,resizable=0,scrollbars=no').focus() ;
}
-->
</script>
<form action="admin_cal.php" method="post">
<h1>Couleurs</h1>
<table class="td_normal">
	<tr>
		<td class="td_listing1">Disponibilit&eacute;&nbsp;:</td>
		<td class="td_listing1"><input id="dispo" name="dispo" value="<?=$conf['dispo']?>"> <input type="button" value="S&eacute;lectionner" onclick="color('dispo', this.form.dispo.value) ;"></td>
	</tr>
	<tr>
		<td class="td_listing0">Absence&nbsp;:</td>
		<td class="td_listing0"><input id="abs" name="abs" value="<?=$conf['abs']?>"> <input type="button" value="S&eacute;lectionner" onclick="color('abs', this.form.abs.value)"></td>
	</tr>
	<tr>
		<td class="td_listing1">Prestation&nbsp;:</td>
		<td class="td_listing1"><input id="prest" name="prest" value="<?=$conf['prest']?>"> <input type="button" value="S&eacute;lectionner" onclick="color('prest', this.form.prest.value)"></td>
	</tr>
	<tr>
		<td class="td_listing0">Prestation hors disponibilit&eacute;&nbsp;:</td>
		<td class="td_listing0"><input id="presthd" name="presthd" value="<?=$conf['presthd']?>"> <input type="button" value="S&eacute;lectionner" onclick="color('presthd', this.form.presthd.value)"></td>
	</tr>
	<tr>
		<td class="td_listing1">Prestation r&eacute;guli&egrave;re&nbsp;:</td>
		<td class="td_listing1"><input id="prestr" name="prestr" value="<?=$conf['prestr']?>"> <input type="button" value="S&eacute;lectionner" onclick="color('prestr', this.form.prestr.value)"></td>
	</tr>
	<tr>
		<td class="td_listing0">Prestation r&eacute;guli&egrave;re hors disponibilit&eacute;&nbsp;:</td>
		<td class="td_listing0"><input id="prestrhd" name="prestrhd" value="<?=$conf['prestrhd']?>"> <input type="button" value="S&eacute;lectionner" onclick="color('prestrhd', this.form.prestrhd.value)"></td>
	</tr>
	<tr>
		<td class="td_listing1">Prestation pendant absence&nbsp;:</td>
		<td class="td_listing1"><input id="prestabs" name="prestabs" value="<?=$conf['prestabs']?>"> <input type="button" value="S&eacute;lectionner" onclick="color('prestabs', this.form.prestabs.value)"></td>
	</tr>
	<tr>
		<td class="td_listing0">Chevauchement de prestations&nbsp;:</td>
		<td class="td_listing0"><input id="prestc" name="prestc" value="<?=$conf['prestc']?>"> <input type="button" value="S&eacute;lectionner" onclick="color('prestc', this.form.prestc.value)"></td>
	</tr>
	<tr>
		<td class="td_listing1">Chevauchement de prestations pendant absence&nbsp;:</td>
		<td class="td_listing1"><input id="prestcabs" name="prestcabs" value="<?=$conf['prestcabs']?>"> <input type="button" value="S&eacute;lectionner" onclick="color('prestcabs', this.form.prestcabs.value)"></td>
	</tr>
</table><br />
<input type="submit" class="bigbutton" value="Enregistrer" onClick="">
</form>
</body>
</html>

AnonSec - 2021