root/alternc/trunk/bureau/admin/adm_dorenew.php
| Revision 982, 1.7 kB (checked in by joe, 3 years ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | /* |
| 3 | $Id: adm_dorenew.php,v 1.6 2006/01/24 05:03:30 joe Exp $ |
| 4 | ---------------------------------------------------------------------- |
| 5 | AlternC - Web Hosting System |
| 6 | Copyright (C) 2006 Le réseau Koumbit Inc. |
| 7 | http://koumbit.org/ |
| 8 | Copyright (C) 2002 by the AlternC Development Team. |
| 9 | http://alternc.org/ |
| 10 | ---------------------------------------------------------------------- |
| 11 | Based on: |
| 12 | Valentin Lacambre's web hosting softwares: http://altern.org/ |
| 13 | ---------------------------------------------------------------------- |
| 14 | LICENSE |
| 15 | |
| 16 | This program is free software; you can redistribute it and/or |
| 17 | modify it under the terms of the GNU General Public License (GPL) |
| 18 | as published by the Free Software Foundation; either version 2 |
| 19 | of the License, or (at your option) any later version. |
| 20 | |
| 21 | This program is distributed in the hope that it will be useful, |
| 22 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 23 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 24 | GNU General Public License for more details. |
| 25 | |
| 26 | To read the license please visit http://www.gnu.org/copyleft/gpl.html |
| 27 | ---------------------------------------------------------------------- |
| 28 | Purpose of file: Renew an account for the specified period |
| 29 | ---------------------------------------------------------------------- |
| 30 | */ |
| 31 | require_once("../class/config.php"); |
| 32 | |
| 33 | if (!$admin->enabled) { |
| 34 | __("This page is restricted to authorized staff"); |
| 35 | exit(); |
| 36 | } |
| 37 | if (!$admin->checkcreator($uid)) { |
| 38 | __("This page is restricted to authorized staff"); |
| 39 | exit(); |
| 40 | } |
| 41 | |
| 42 | if (!$admin->renew_mem($_REQUEST['uid'], $_REQUEST['periods'])){ |
| 43 | $error=$err->errstr(); |
| 44 | include("adm_edit.php"); |
| 45 | } else { |
| 46 | $error=_("The member has been successfully renewed"); |
| 47 | include("adm_list.php"); |
| 48 | } |
| 49 | ?> |
| 50 |
Note: See TracBrowser for help on using the browser.
