ws-2.0: un gros morceau en cours de test suite
This commit is contained in:
parent
bf9e6796df
commit
0e62b2b35a
@ -55,6 +55,7 @@ function menu_children($children)
|
||||
$href = $children['href']();
|
||||
}
|
||||
// Traitement des permissions
|
||||
require_once 'user/permissions.php';
|
||||
if (isset($children['perm'])) {
|
||||
$permStatut = false;
|
||||
foreach ($children['perm']['list'] as $perm) {
|
||||
|
@ -1,4 +1,6 @@
|
||||
<?php
|
||||
require_once 'user/permissions.php';
|
||||
require_once 'user/preferences.php';
|
||||
require_once 'cache/cache.php';
|
||||
require_once realpath(dirname(__FILE__)).'/functions.php';
|
||||
|
||||
|
@ -255,7 +255,7 @@ function inSurveillance($source, $siret)
|
||||
$siret = substr($siret, 0, 9);
|
||||
}
|
||||
if (empty($source) == false) {
|
||||
foreach ($survSource as $item) {
|
||||
foreach ($survSource->item as $item) {
|
||||
if ($item->siren == $siret &&
|
||||
$item->source == $source) {
|
||||
$find[$item->source] =
|
||||
@ -268,7 +268,7 @@ function inSurveillance($source, $siret)
|
||||
}
|
||||
} else {
|
||||
$find = array();
|
||||
foreach ($survSource as $item) {
|
||||
foreach ($survSource->item as $item) {
|
||||
if ($item->siren == $siret) {
|
||||
$find[$item->source] =
|
||||
array('email' => $item->email,
|
||||
@ -300,7 +300,7 @@ function setSurveillance($tabForm)
|
||||
$email = $tabForm['email'];
|
||||
$ref = $tabForm['ref'];
|
||||
$source = $tabForm['source'];
|
||||
$encours = (empty($tabForm['encours'] == false) ? $tabForm['encours'] : 0;
|
||||
$encours = (empty($tabForm['encours']) == false) ? $tabForm['encours'] : 0;
|
||||
|
||||
// Vérification de l'encours (chiffres)
|
||||
if (preg_match('/([0-9]+)/', $encours) == false) {
|
||||
|
@ -8,6 +8,7 @@ require_once 'index.fct.php';
|
||||
require_once 'fwk.php';
|
||||
require_once 'default/_includes/mysql.php';
|
||||
require_once 'index_auth.php';
|
||||
require_once 'user/profil.php';
|
||||
|
||||
if (!isset($_REQUEST['page'])) {
|
||||
$page = 'main';
|
||||
|
Loading…
Reference in New Issue
Block a user