Esempio n. 1
0
<?php

header("content-Type: text/html; charset=utf-8");
require "private.php";
InitParam();
$GLOBALS["sAction"] = strtoupper(TrimGet("action"));
if ($GLOBALS["sAction"] == "FILE") {
    OutScript(GetFileList());
} else {
    $GLOBALS["sAction"] = "FOLDER";
    OutScript(GetFolderList());
}
function GetFileList()
{
    $s_ReturnFlag = TrimGet("returnflag");
    $s_FolderType = TrimGet("foldertype");
    $s_Dir = TrimGet("dir");
    $s_CurrDir = "";
    $s_Dir = UTF8_to_Pagecode($s_Dir, true);
    switch ($s_FolderType) {
        case "upload":
            $s_CurrDir = $GLOBALS["sUploadDir"];
            break;
        case "shareimage":
            $GLOBALS["sAllowExt"] = "";
            $s_CurrDir = $GLOBALS["sPathShareImage"];
            break;
        case "shareflash":
            $GLOBALS["sAllowExt"] = "";
            $s_CurrDir = $GLOBALS["sPathShareFlash"];
            break;
Esempio n. 2
0
<?php

include_once('include_vars.php');
include_once('Queries.php');

$Today=date('Y-m-d');

$Param=InitParam();
//$debug=true;


if ($Param["CType"]!='' || $Param["Task"]!='') { // any of the change functions
  if ($Param["CType"]=="Update") {
	echo "Update db - cronlike <HR>\n";
	UpdateCronLike($Param);
  } else { echo "wrong call<BR>"; }
  
  $ExecString="./ToDo.html?Class=".$Param['Class']."&Pick=".$Param['Pick'];
  echo "ExecString:<BR>\n".$ExecString."<HR>\n";
  if ($debug) exit;

?>
<script language="javascript">
    window.location.href = "<? echo $ExecString; ?>"
</script>
<?
}


function UpdateCronLike($Param) {
	global $Today;