0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
7.0-0
/
standard
/
htdocs
/
lib
/
setup
/
[
Home
]
File: dynamic_variables.php
<?php // (c) Copyright 2002-2011 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id: dynamic_variables.php 33195 2011-03-02 17:43:40Z changi67 $ //this script may only be included - so its better to die if called directly. $access->check_script($_SERVER["SCRIPT_NAME"],basename(__FILE__)); // Check for an update of dynamic vars if ( isset($tiki_p_edit_dynvar) && $tiki_p_edit_dynvar == 'y' ) { if ( isset($_REQUEST['_dyn_update']) ) { global $prefs; if( $prefs['feature_multilingual'] == 'y' && $prefs['wiki_dynvar_multilingual'] == 'y' && isset( $_REQUEST['page'] ) ) { $lang = $tikilib->getOne( 'SELECT `lang` FROM `tiki_pages` WHERE `pageName` = ?', array( $_REQUEST['page'] ) ); } else { $lang = null; } foreach ( $_REQUEST as $name => $value ) { if ( substr($name,0,4) == 'dyn_' and $name != '_dyn_update' ) { $tikilib->update_dynamic_variable(substr($name,4), $_REQUEST[$name], $lang); } } } }