Example #1
0
* $data->setColumnFormat(4, '%.3f');
* setColumnFormat - set format for column (apply only to number fields)
*
**/

//standard user variable
$trailSessionUser=0;
$trailSessionUserID=0;
if($_SESSION["VLEMAIL"]) {
	$trailSessionUser=$_SESSION["VLEMAIL"];
} else {
	$trailSessionUser="******".($ipAddress?$ipAddress:$serverAddress).($c?"/$c":"").")";
}

//load all functions
loadFunctions();
//load some static files
include_once("conf.xajax.php");

/**
* date/time defaults
* at 11:00hrs hostmonster mysql time == 20:00hrs Ug time
* 20:00hrs Ug time (+3 GMT) == 17:00hrs GMT
* hostmonster == -6 GMT
*/
$datetime=0;
//$datetime=getDualInfoWithAlias("convert_tz(now(),'$default_GMTtimezone:00','".getDetailedTableInfo2("vl_timezones",($c?"lower(country)='".strtolower($c)."'":"country='$default_country'"),"timezone")."')","datetime");
$datetime=getDualInfoWithAlias("now()","datetime");
$date=0;
$date=getRawFormattedDateLessDay($datetime);
$icurDate=0;
Example #2
0
 public function run()
 {
     loadFunctions('user/common');
     $this->mode = "html";
 }