74 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
			
		
		
	
	
			74 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
| <?php
 | |
| /*
 | |
|  $Id: adm_variables.php,v 1.1 2005/01/19 06:09:36 anarcat Exp $
 | |
|  ----------------------------------------------------------------------
 | |
|  AlternC - Web Hosting System
 | |
|  Copyright (C) 2002 by the AlternC Development Team.
 | |
|  http://alternc.org/
 | |
|  ----------------------------------------------------------------------
 | |
|  Based on:
 | |
|  Valentin Lacambre's web hosting softwares: http://altern.org/
 | |
|  ----------------------------------------------------------------------
 | |
|  LICENSE
 | |
| 
 | |
|  This program is free software; you can redistribute it and/or
 | |
|  modify it under the terms of the GNU General Public License (GPL)
 | |
|  as published by the Free Software Foundation; either version 2
 | |
|  of the License, or (at your option) any later version.
 | |
| 
 | |
|  This program is distributed in the hope that it will be useful,
 | |
|  but WITHOUT ANY WARRANTY; without even the implied warranty of
 | |
|  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | |
|  GNU General Public License for more details.
 | |
| 
 | |
|  To read the license please visit http://www.gnu.org/copyleft/gpl.html
 | |
|  ----------------------------------------------------------------------
 | |
|  Original Author of file: Benjamin Sonntag
 | |
|  Purpose of file: Manage allowed TLD on the server
 | |
|  ----------------------------------------------------------------------
 | |
| */
 | |
| require_once("../class/config.php");
 | |
| 
 | |
| if (!$admin->enabled) {
 | |
| 	$msg->raise('Error', "admin", _("This page is restricted to authorized staff"));
 | |
| 	echo $msg->msg_html_all();
 | |
| 	exit();
 | |
| }
 | |
| 
 | |
| $conf = variable_init();
 | |
| foreach ($conf as $name => $val) {
 | |
|   if (isset($GLOBALS['_POST'][$name])) {
 | |
|     variable_set($name, $GLOBALS['_POST'][$name]);
 | |
|   }
 | |
| }
 | |
| 
 | |
| include_once ("head.php");
 | |
| 
 | |
| ?>
 | |
| <h3><?php __("Configure AlternC variables"); ?></h3>
 | |
| <hr id="topbar"/>
 | |
| <br />
 | |
| <?php echo $msg->msg_html_all(); ?>
 | |
| <p>
 | |
| <?php __("Here are the internal AlternC variables that are currently being used."); ?>
 | |
| </p>
 | |
| 
 | |
| <form method="post" action="adm_variables.php">
 | |
|   <?php csrf_get(); ?>
 | |
| <table border="0" cellpadding="4" cellspacing="0" class='tlist'>
 | |
| <tr><th><?php __("Names"); ?></th><th><?php __("Value"); ?></th><th><?php __("Comment"); ?></th></tr>
 | |
| <?php
 | |
| 
 | |
| foreach( variables_list() as $vars) {  ?>
 | |
| 
 | |
|  <tr class="lst">
 | |
|     <td><?php ehe($vars['name']); ?></td>
 | |
|  <td><input type="text" name="<?php ehe($vars['name']); ?>" value="<?php ehe($vars['value']); ?>" /></td>
 | |
|     <td><?php ehe($vars['comment']); ?></td>
 | |
|  </tr>
 | |
| <?php } ?>
 | |
| </table>
 | |
| <p><input type="submit" class="inb" value="<?php __("Save variables"); ?>" /></p>
 | |
| </form>
 | |
| <?php include_once("foot.php"); ?>
 |