26 require_once(
"../class/config.php");
28 if (!$admin->enabled) {
29 $msg->raise(
"ERROR",
"admin", _(
"This page is restricted to authorized staff"));
30 echo
$msg->msg_html_all();
36 if (isset($GLOBALS[
'_POST'][$name])) {
41 include_once (
"head.php");
44 <h3><?php
__(
"Configure AlternC variables"); ?></h3>
47 <?php echo
$msg->msg_html_all(); ?>
49 <?php
__(
"Here are the internal AlternC variables that are currently being used."); ?>
52 <form method=
"post" action=
"adm_variables.php">
54 <table border=
"0" cellpadding=
"4" cellspacing=
"0" class=
'tlist'>
55 <tr><th><?php
__(
"Names"); ?></th><th><?php
__(
"Value"); ?></th><th><?php
__(
"Comment"); ?></th></tr>
61 <td><?php
ehe($vars[
'name']); ?></td>
62 <td><input type=
"text" class=
"int" name=
"<?php ehe($vars['name']); ?>" value=
"<?php ehe($vars['value']); ?>" style=
"width: 200px"/></td>
63 <td><?php
ehe($vars[
'comment']); ?></td>
67 <p><input type=
"submit" class=
"inb" value=
"<?php __("Save variables
"); ?>" /></p>
69 <?php include_once(
"foot.php"); ?>
if(! $admin->enabled) $conf
Manages global variables of AlternC.
variable_set($name, $value, $comment=null)
Set a persistent variable.
variable_init($conf=array())
Persistent variable table.
variables_list()
List all variables.
ehe($str, $display=TRUE)
Echo the HTMLSpecialChars version of a value.
csrf_get($return=false)
Give a new CSRF uniq token for a form the session must be up since the CSRF is linked to the session ...