Location: PHPKode > projects > phpMyPrepaid > phpmyprepaid/www/include/divers/acctshow.php
<?php
#Read sql attribute map
unset($sql_attrs);
if (isset($_SESSION['sql_attrs']))
	$sql_attrs = $_SESSION["sql_attrs"];
if (!isset($sql_attrs)){
	$ARR = file('include/divers/sql.attrs');
	foreach($ARR as $val){
		$val=chop($val);
		if (ereg('^[[:space:]]*#',$val) || ereg('^[[:space:]]*$',$val))
			continue;
		list($key,$desc,$show,$func)=split("\t+",$val);
		$sql_attrs[strtolower($key)][desc] = "$desc";
		$sql_attrs[strtolower($key)][show] = "$show";
		$sql_attrs[strtolower($key)][func] = ($func == "") ? "nothing" : "$func";
	}
	 $_SESSION["sql_attrs"]= $sql_attrs;

	if ($config[general_use_session] == 'yes')
		session_register('sql_attrs');
}
?>
Return current item: phpMyPrepaid