Location: PHPKode > projects > PHP Web FileManager - Similiar to Yahoo! > _extras/smarty_template/filemanager_smarty_interface.php
<?PHP
if(stristr($_SERVER["PHP_SELF"], __FILE__))  die ("You can not call this file ...");

// ------------- Smarty Interface --------------
$smarty->assign("menuOption",$menuOption);
$smarty->Assign("subDir",$subDir);
$smarty->Assign("getSubDir",$theFileManager->getSubDir());
$smarty->Assign("LengetSubDir",strlen($theFileManager->getSubDir()));
$smarty->Assign("lastFolder",$lastFolder);

$smarty->Assign("BeginURL",$BeginURL);

$smarty->Assign("TotalSize",0);
$smarty->Assign("theList",$theList);
if(!isset($modList)) $modList = False;
$smarty->Assign("modList",$modList);

$smarty->Assign("FileManagerVer",$filemanver);
$smarty->Assign("getSiteName",$theFileManager->getSiteName()); 
$smarty->Assign("LIB",LIB);
$smarty->Assign("getTotalSizeUsed",$theFileManager->getTotalSizeUsed()); 
$smarty->assign("getFileCount",$theFileManager->getFileCount());
$smarty->assign("PHP_SELF",$_SERVER["PHP_SELF"]);
$smarty->assign("FileManagerTitle",$locale->getString(LID_TYPE_GENERAL,LID_TITLE) . " " .$locale->getString(LID_TYPE_GENERAL,LID_VERSION));
$smarty->Assign("errormsg",$errormsg);
$smarty->Assign("set_export_on",$compress_cfg["set_export_on"]);
$smarty->Assign("set_import_on",$compress_cfg["set_import_on"]);
$smarty->Assign("member",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_MEMBER));
//Gombok
$smarty->Assign("copy", $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_COPY));
$smarty->Assign("rename",$locale->getString(LID_TYPE_HTML,LID_HTML_BUT_RENAME));
$smarty->Assign("delete",$locale->getString(LID_TYPE_HTML,LID_HTML_BUT_DELETE));
$smarty->Assign("refresh",$locale->getString(LID_TYPE_HTML,LID_HTML_BUT_REFRESH));
$smarty->Assign("upload",$locale->getString(LID_TYPE_HTML,LID_HTML_BUT_UPLOAD));
$smarty->Assign("newfolder",$locale->getString(LID_TYPE_HTML,LID_HTML_BUT_NEWFOLDER));
$smarty->Assign("advance_option",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_ADVANCE_OPTION));
$smarty->Assign("find",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_DROPDOWN_FIND));
$smarty->Assign("export",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_DROPDOWN_EXPORT)); 
$smarty->Assign("export",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_DROPDOWN_EXPORT)); 
$smarty->Assign("import",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_DROPDOWN_IMPORT)); 
$smarty->Assign("export_filename",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_EXPORT_FILENAME));
$smarty->Assign("IMPORT_INFO",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_IMPORT_INFO));
$smarty->Assign("IMPORT_HDR",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_IMPORT_HDR));

$smarty->Assign("lbl_file",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_FILE));
$smarty->assign("lbl_filename", $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_FILENAME));

$smarty->Assign("upload_info",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_UPLOAD_INFO));
$smarty->Assign("upload_hdr",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_UPLOAD_HDR));
$smarty->Assign("newfolder_only_char",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_NEWFOLDER_ONLY_CHAR));
$smarty->Assign("RENAME_INFO",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_RENAME_INFO));
$smarty->Assign("RENAME_HDR",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_RENAME_HDR));
$smarty->Assign("CURRENT_FILENAME",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_CURRENT_FILENAME));
$smarty->Assign("NEW_FILENAME",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_NEW_FILENAME)); 
$smarty->Assign("BUT_EXPORT",$locale->getString(LID_TYPE_HTML,LID_HTML_BUT_EXPORT));
$smarty->Assign("BUT_NEWFOLDER",$locale->getString(LID_TYPE_HTML,LID_HTML_BUT_NEWFOLDER));
$smarty->Assign("BUT_RENAME",$locale->getString(LID_TYPE_HTML,LID_HTML_BUT_RENAME));
$smarty->Assign("BUT_CANCEL",$locale->getString(LID_TYPE_HTML,LID_HTML_BUT_CANCEL));
$smarty->Assign("BUT_DELETE",$locale->getString(LID_TYPE_HTML,LID_HTML_BUT_DELETE)); 
$smarty->Assign("BUT_FIND",$locale->getString(LID_TYPE_HTML,LID_HTML_BUT_FIND));
$smarty->Assign("NEWFOLDER_HDR",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_NEWFOLDER_HDR)); 
$smarty->Assign("NEWFOLDER_INFO",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_NEWFOLDER_INFO));
$smarty->Assign("NEWFOLDER_NAME",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_NEWFOLDER_NAME));
$smarty->Assign("FIND_HDR",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_FIND_HDR)); 
$smarty->Assign("FIND_INFO",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_FIND_INFO)); 
$smarty->Assign("FILE_FOLDER",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_FIND_FILE_FOLDER)); 
$smarty->Assign("FIND_MAX255",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_FIND_MAX255)); 
$smarty->Assign("MATCH_CASE",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_FIND_MATCH_CASE));
$smarty->Assign("FIND_WHOLE_WORD_ONLY",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_FIND_WHOLE_WORD_ONLY)); 
$smarty->Assign("COPY_CHAR",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_COPY_HDR));
$smarty->Assign("COPY_INFO",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_COPY_INFO));
$smarty->Assign("CURRENT_FILENAME",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_CURRENT_FILENAME));

$smarty->Assign("NEW_FILENAME",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_NEW_FILENAME));
$smarty->Assign("EXPORT_HDR",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_EXPORT_HDR)); 
$smarty->Assign("EXPORT_INFO",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_EXPORT_INFO)); 
$smarty->Assign("IMPORT_FILENAME",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_IMPORT_FILENAME));

$smarty->Assign("sort1","sort=1&sortprev=".$actionSortPrev."&sortdir=".$sortdir); 
$smarty->Assign("col1",$locale->getString(LID_TYPE_HTML,LID_HTML_COL_NAME));
$smarty->Assign("sort2","sort=2&sortprev=".$actionSortPrev."&sortdir=".$sortdir); 
$smarty->Assign("col2",$locale->getString(LID_TYPE_HTML,LID_HTML_COL_LASTMOD));
$smarty->Assign("sort3","sort=3&sortprev=".$actionSortPrev."&sortdir=".$sortdir); 
$smarty->Assign("col3",$locale->getString(LID_TYPE_HTML,LID_HTML_COL_SIZE));
$smarty->Assign("getIsSubDir_isUpload_isChanged",(($theFileManager->getIsSubDir() || $isUpload || $isChanged) ? 1 :-1));

$smarty->Assign("TOTALSPACE",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_TOTALSPACE));
$smarty->assign("GO",$locale->getString(LID_TYPE_HTML,LID_HTML_BUT_GO));
$smarty->assign("delete_hdr",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_DELETE_HDR));
$smarty->assign("delete_info", $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_DELETE_INFO));
$smarty->assign("check_confirm",$locale->getString(LID_TYPE_HTML,LID_HTML_LBL_CHECK_CONFIRM));

?>
Return current item: PHP Web FileManager - Similiar to Yahoo!