Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
439 ddelon 1
<?php
2
/*
3
deletepage.php
4
 
5
Copyright 2002  David DELON
6
Copyright 2003 Eric FELDSTEIN
7
This program is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 2 of the License, or
10
(at your option) any later version.
11
 
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
GNU General Public License for more details.
16
 
17
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software
19
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20
*/
21
 
22
//vérification de sécurité
23
if (!eregi("wakka.php", $_SERVER['PHP_SELF'])) {
24
    die ("acc&egrave;s direct interdit");
25
}
26
echo $this->Header();
27
?>
28
<div class="page">
29
<?php
30
 
31
if ($this->UserIsOwner())
32
{
33
	if ($pages = $this->IsOrphanedPage($this->GetPageTag()))
34
	{
35
		foreach ($pages as $page)
36
		{
37
			$this->DeleteOrphanedPage($this->GetPageTag());
38
		}
39
	}
40
	else
41
	{
42
		echo"<i>Cette page n'est pas orpheline.</i>";
43
	}
44
 
45
}
46
else
47
{
48
	echo"<i>Vous n'&ecirc;tes pas le propri&eacute;taire de cette page.</i>";
49
}
50
 
51
?>
52
</div>
53
<?php echo $this->Footer(); ?>