Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
ae2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Antoine
ae2
Commits
9886a7db
Commit
9886a7db
authored
Mar 23, 2008
by
Feu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remplacement des 404.php par site::error_not_found
parent
2503ad7d
Changes
31
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
37 additions
and
37 deletions
+37
-37
ae/cotisations.php
ae/cotisations.php
+3
-3
ae/elections.php
ae/elections.php
+1
-1
asso.php
asso.php
+1
-1
asso/campagne.php
asso/campagne.php
+1
-1
asso/history.php
asso/history.php
+2
-2
asso/index.php
asso/index.php
+1
-1
asso/inventaire.php
asso/inventaire.php
+1
-1
asso/mailing.php
asso/mailing.php
+1
-1
asso/membres.php
asso/membres.php
+1
-1
asso/reservations.php
asso/reservations.php
+1
-1
asso/sendfax.php
asso/sendfax.php
+1
-1
asso/ventes.php
asso/ventes.php
+1
-1
batiment.php
batiment.php
+1
-1
compta/budget.php
compta/budget.php
+1
-1
compta/cptasso.php
compta/cptasso.php
+1
-1
compta/cptbc.php
compta/cptbc.php
+1
-1
compta/libelle.php
compta/libelle.php
+2
-2
comptoir/encours.php
comptoir/encours.php
+1
-1
covoiturage/details.php
covoiturage/details.php
+2
-2
elections.php
elections.php
+1
-1
emprunt.php
emprunt.php
+1
-1
family.php
family.php
+1
-1
group.php
group.php
+1
-1
matmatronch/upload_photo_user.php
matmatronch/upload_photo_user.php
+1
-1
matmatronch/vcf.php
matmatronch/vcf.php
+1
-1
news.php
news.php
+1
-1
objet.php
objet.php
+1
-1
objtype.php
objtype.php
+1
-1
sas2/images.php
sas2/images.php
+1
-1
sitebat.php
sitebat.php
+1
-1
trombi/index.php
trombi/index.php
+2
-2
No files found.
ae/cotisations.php
View file @
9886a7db
...
...
@@ -205,7 +205,7 @@ elseif ( $_REQUEST["action"] == "savecotiz" )
if
(
$user
->
id
<
0
)
{
header
(
"Location: "
.
$topdir
.
"404.php"
);
$site
->
error_not_found
(
);
exit
();
}
else
...
...
@@ -392,7 +392,7 @@ elseif ( $_REQUEST["action"] == "searchstudent" )
$user
->
load_by_id
(
$res
[
'id_utl'
]);
if
(
$user
->
id
<
0
)
{
header
(
"Location: 404.php"
);
$site
->
error_not_found
(
);
exit
();
}
...
...
@@ -526,7 +526,7 @@ elseif ( $_REQUEST["action"] == "newcotiz" )
$user
->
load_by_id
(
$_REQUEST
[
'id_utilisateur'
]);
if
(
$user
->
id
<
0
)
{
header
(
"Location: 404.php"
);
$site
->
error_not_found
(
);
exit
();
}
...
...
ae/elections.php
View file @
9886a7db
...
...
@@ -38,7 +38,7 @@ if ( isset($_REQUEST["id_election"]))
$elec
->
load_by_id
(
$_REQUEST
[
"id_election"
]);
if
(
$elec
->
id
<
1
)
{
header
(
"Location: ../404.php"
);
$site
->
error_not_found
(
);
exit
();
}
}
...
...
asso.php
View file @
9886a7db
...
...
@@ -67,7 +67,7 @@ else if ( isset($_REQUEST["id_asso"]) )
$asso
->
load_by_id
(
$_REQUEST
[
"id_asso"
]);
if
(
$asso
->
id
<
1
)
{
header
(
"Location: 404.php"
);
$site
->
error_not_found
(
);
exit
();
}
...
...
asso/campagne.php
View file @
9886a7db
...
...
@@ -31,7 +31,7 @@ $asso = new asso($site->db,$site->dbrw);
$asso
->
load_by_id
(
$_REQUEST
[
"id_asso"
]);
if
(
$asso
->
id
<
1
)
{
header
(
"Location: ../404.php"
);
$site
->
error_not_found
(
);
exit
();
}
if
(
!
$site
->
user
->
is_in_group
(
"gestion_ae"
)
&&
!
$asso
->
is_member_role
(
$site
->
user
->
id
,
ROLEASSO_MEMBREBUREAU
)
)
...
...
asso/history.php
View file @
9886a7db
...
...
@@ -41,7 +41,7 @@ $asso = new asso($site->db,$site->dbrw);
if
(
!
isset
(
$_REQUEST
[
"id_asso"
])
)
{
header
(
"Location: 404.php"
);
$site
->
error_not_found
(
);
exit
();
}
...
...
@@ -50,7 +50,7 @@ $asso_parent = new asso($site->db);
$asso
->
load_by_id
(
$_REQUEST
[
"id_asso"
]);
if
(
$asso
->
id
<
1
)
{
header
(
"Location: 404.php"
);
$site
->
error_not_found
(
);
exit
();
}
...
...
asso/index.php
View file @
9886a7db
...
...
@@ -37,7 +37,7 @@ if ( isset($_REQUEST["id_asso"]) )
$asso
->
load_by_id
(
$_REQUEST
[
"id_asso"
]);
if
(
$asso
->
id
<
1
)
{
header
(
"Location: ../404.php"
);
$site
->
error_not_found
(
);
exit
();
}
...
...
asso/inventaire.php
View file @
9886a7db
...
...
@@ -30,7 +30,7 @@ $asso = new asso($site->db,$site->dbrw);
$asso
->
load_by_id
(
$_REQUEST
[
"id_asso"
]);
if
(
$asso
->
id
<
1
)
{
header
(
"Location: ../404.php"
);
$site
->
error_not_found
(
);
exit
();
}
if
(
!
$site
->
user
->
is_in_group
(
"gestion_ae"
)
&&
!
$asso
->
is_member_role
(
$site
->
user
->
id
,
ROLEASSO_MEMBREBUREAU
)
)
...
...
asso/mailing.php
View file @
9886a7db
...
...
@@ -81,7 +81,7 @@ $asso->load_by_id($_REQUEST["id_asso"]);
if
(
$asso
->
id
<
1
)
{
header
(
"Location: ../404.php"
);
$site
->
error_not_found
(
);
exit
();
}
...
...
asso/membres.php
View file @
9886a7db
...
...
@@ -30,7 +30,7 @@ $asso = new asso($site->db,$site->dbrw);
$asso
->
load_by_id
(
$_REQUEST
[
"id_asso"
]);
if
(
$asso
->
id
<
1
)
{
header
(
"Location: ../404.php"
);
$site
->
error_not_found
(
);
exit
();
}
...
...
asso/reservations.php
View file @
9886a7db
...
...
@@ -31,7 +31,7 @@ $asso = new asso($site->db,$site->dbrw);
$asso
->
load_by_id
(
$_REQUEST
[
"id_asso"
]);
if
(
$asso
->
id
<
1
)
{
header
(
"Location: ../404.php"
);
$site
->
error_not_found
(
);
exit
();
}
if
(
!
$site
->
user
->
is_in_group
(
"gestion_ae"
)
&&
!
$asso
->
is_member_role
(
$site
->
user
->
id
,
ROLEASSO_MEMBREBUREAU
)
)
...
...
asso/sendfax.php
View file @
9886a7db
...
...
@@ -39,7 +39,7 @@ $asso = new asso($site->db,$site->dbrw);
$asso
->
load_by_id
(
$_REQUEST
[
"id_asso"
]);
if
(
$asso
->
id
<
1
)
{
header
(
"Location: ../404.php"
);
$site
->
error_not_found
(
);
exit
();
}
...
...
asso/ventes.php
View file @
9886a7db
...
...
@@ -39,7 +39,7 @@ $site->allow_only_logged_users("presentation");
$asso
->
load_by_id
(
$_REQUEST
[
"id_asso"
]);
if
(
$asso
->
id
<
1
)
{
header
(
"Location: ../404.php"
);
$site
->
error_not_found
(
);
exit
();
}
...
...
batiment.php
View file @
9886a7db
...
...
@@ -35,7 +35,7 @@ $bat = new batiment($site->db,$site->dbrw);
$bat
->
load_by_id
(
$_REQUEST
[
"id_batiment"
]);
if
(
$bat
->
id
<
1
)
{
header
(
"Location: 404.php"
);
$site
->
error_not_found
(
);
exit
();
}
$sitebat
->
load_by_id
(
$bat
->
id_site
);
...
...
compta/budget.php
View file @
9886a7db
...
...
@@ -37,7 +37,7 @@ $asso = new asso($site->db);
$budget
->
load_by_id
(
$_REQUEST
[
"id_budget"
]);
if
(
$budget
->
id
<
1
)
{
header
(
"Location: ../404.php"
);
$site
->
error_not_found
(
);
exit
();
}
$cla
->
load_by_id
(
$budget
->
id_classeur
);
...
...
compta/cptasso.php
View file @
9886a7db
...
...
@@ -36,7 +36,7 @@ if ( !$site->user->is_valid() )
$cptasso
->
load_by_id
(
$_REQUEST
[
"id_cptasso"
]);
if
(
$cptasso
->
id
<
1
)
{
header
(
"Location: ../404.php"
);
$site
->
error_not_found
(
);
exit
();
}
$cpbc
->
load_by_id
(
$cptasso
->
id_cptbc
);
...
...
compta/cptbc.php
View file @
9886a7db
...
...
@@ -35,7 +35,7 @@ $cpbc->load_by_id($_REQUEST["id_cptbc"]);
if
(
$cpbc
->
id
<
1
)
{
header
(
"Location: ../404.php"
);
$site
->
error_not_found
(
);
exit
();
}
...
...
compta/libelle.php
View file @
9886a7db
...
...
@@ -35,7 +35,7 @@ if ( !$site->user->is_valid() )
$asso
->
load_by_id
(
$_REQUEST
[
"id_asso"
]);
if
(
$asso
->
id
<
1
)
{
header
(
"Location: ../404.php"
);
$site
->
error_not_found
(
);
exit
();
}
...
...
@@ -69,7 +69,7 @@ elseif ( $_REQUEST["action"] == "edit" )
if
(
$libelle
->
id
<
1
)
{
header
(
"Location: ../404.php"
);
$site
->
error_not_found
(
);
exit
();
}
...
...
comptoir/encours.php
View file @
9886a7db
...
...
@@ -35,7 +35,7 @@ if ( isset($_REQUEST['id_utilisateur']) )
$user
->
load_by_id
(
$_REQUEST
[
"id_utilisateur"
]);
if
(
$user
->
id
<
0
)
{
header
(
"Location: ../404.php"
);
$site
->
error_not_found
(
);
exit
();
}
if
(
!
(
$user
->
id
==
$site
->
user
->
id
||
$site
->
user
->
is_in_group
(
"gestion_ae"
))
)
...
...
covoiturage/details.php
View file @
9886a7db
...
...
@@ -101,14 +101,14 @@ if ($_REQUEST['action'] == 'delete')
}
else
{
header
(
"Location: ../404.php"
);
$site
->
error_not_found
(
);
exit
();
}
}
// fin suppresion d'étapes
if
((
$trajet
->
id
<=
0
)
||
(
!
in_array
(
$datetrj
,
$trajet
->
dates
)))
{
header
(
"Location: ../404.php"
);
$site
->
error_not_found
(
);
exit
();
}
...
...
elections.php
View file @
9886a7db
...
...
@@ -40,7 +40,7 @@ if ( isset($_REQUEST["id_election"]))
$elec
->
load_by_id
(
$_REQUEST
[
"id_election"
]);
if
(
$elec
->
id
<
1
)
{
header
(
"Location: ../404.php"
);
$site
->
error_not_found
(
);
exit
();
}
...
...
emprunt.php
View file @
9886a7db
...
...
@@ -41,7 +41,7 @@ if ( isset($_REQUEST["id_emprunt"]) )
$emp
->
load_by_id
(
$_REQUEST
[
"id_emprunt"
]);
if
(
$emp
->
id
<
1
&&
!
isset
(
$_REQUEST
[
"valid"
])
)
{
header
(
"Location: 404.php"
);
$site
->
error_not_found
(
);
exit
();
}
elseif
(
$emp
->
id
>
0
)
...
...
family.php
View file @
9886a7db
...
...
@@ -34,7 +34,7 @@ if ( isset($_REQUEST['id_utilisateur']) )
$user
->
load_by_id
(
$_REQUEST
[
"id_utilisateur"
]);
if
(
$user
->
id
<
0
)
{
header
(
"Location: 404.php"
);
$site
->
error_not_found
(
);
exit
();
}
$can_edit
=
(
$user
->
id
==
$site
->
user
->
id
||
$site
->
user
->
is_in_group
(
"gestion_ae"
)
);
...
...
group.php
View file @
9886a7db
...
...
@@ -39,7 +39,7 @@ if ( isset($_REQUEST["id_groupe"]) )
$grp
->
load_by_id
(
$_REQUEST
[
"id_groupe"
]);
if
(
$grp
->
id
<
1
)
{
header
(
"Location: 404.php"
);
$site
->
error_not_found
(
);
exit
();
}
}
...
...
matmatronch/upload_photo_user.php
View file @
9886a7db
...
...
@@ -89,7 +89,7 @@ if ($page == "upload_photos")
if
(
!
$user
->
is_valid
()
)
{
header
(
"Location: "
.
$topdir
.
"404.php"
);
$site
->
error_not_found
(
);
exit
();
}
...
...
matmatronch/vcf.php
View file @
9886a7db
...
...
@@ -19,7 +19,7 @@ $user = new utilisateur($site->db,$site->dbrw);
$user
->
load_by_id
(
$_REQUEST
[
"id_utilisateur"
]);
if
(
$user
->
id
<
0
)
{
header
(
"Location: ../404.php"
);
$site
->
error_not_found
(
);
exit
();
}
$user
->
load_all_extra
();
...
...
news.php
View file @
9886a7db
...
...
@@ -49,7 +49,7 @@ if ( isset($_REQUEST["id_nouvelle"]) )
$news
->
load_by_id
(
$_REQUEST
[
"id_nouvelle"
]);
if
(
$news
->
id
<
1
)
{
header
(
"Location: 404.php"
);
$site
->
error_not_found
(
);
exit
();
}
...
...
objet.php
View file @
9886a7db
...
...
@@ -52,7 +52,7 @@ if ( isset($_REQUEST["id_objet"]) )
$objet
->
load_by_id
(
$_REQUEST
[
"id_objet"
]);
if
(
$objet
->
id
<
1
)
{
header
(
"Location: 404.php"
);
$site
->
error_not_found
(
);
exit
();
}
$can_admin
=
false
;
...
...
objtype.php
View file @
9886a7db
...
...
@@ -43,7 +43,7 @@ if ( isset($_REQUEST["id_objtype"]) )
$objtype
->
load_by_id
(
$_REQUEST
[
"id_objtype"
]);
if
(
!
$objtype
->
is_valid
()
)
{
header
(
"Location: 404.php"
);
$site
->
error_not_found
(
);
exit
();
}
...
...
sas2/images.php
View file @
9886a7db
...
...
@@ -54,7 +54,7 @@ else if ( ereg("^/(.*)$",$_SERVER["argv"][0]) )
}
else
{
header
(
"Location: ../404.php"
);
$site
->
error_not_found
(
);
exit
();
}
...
...
sitebat.php
View file @
9886a7db
...
...
@@ -35,7 +35,7 @@ if ( isset($_REQUEST["id_site"]) )
$sitebat
->
load_by_id
(
$_REQUEST
[
"id_site"
]);
if
(
$sitebat
->
id
<
1
)
{
header
(
"Location: 404.php"
);
$site
->
error_not_found
(
);
exit
();
}
if
(
$_REQUEST
[
"action"
]
==
"addbat"
&&
$site
->
user
->
is_in_group
(
"gestion_ae"
)
)
...
...
trombi/index.php
View file @
9886a7db
...
...
@@ -96,7 +96,7 @@ if ( $_REQUEST["page"] == "edit" )
$cmt
->
load_by_id
(
$_REQUEST
[
"id_commentaire"
]);
if
(
$cmt
->
id
<
1
)
{
header
(
"Location: 404.php"
);
$site
->
error_not_found
(
);
exit
();
}
...
...
@@ -130,7 +130,7 @@ elseif ( $_REQUEST["page"] == "del" )
$cmt
->
load_by_id
(
$_REQUEST
[
"id_commentaire"
]);
if
(
$cmt
->
id
<
1
)
{
header
(
"Location: 404.php"
);
$site
->
error_not_found
(
);
exit
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment