<?php
interface CpHandle_InterfaceForAdmin
{
function init();
/* Main Frame target
* @return <string> $target
*
*/
function FrameTarget();
/**
* - AdminComponentUserControlMgr.php
* - AdminRecoverProjectUserListMgr.php
* - TranslationMgr.php
* get home directory of user
* @param <string> $username
* @return <string>
*/
function getHomeDir($username=RVS_USER_NAME);
/**
* no process in nocp,tryout
* - PublishSiteDBMgr.php
*/
function actionAJExternal($url);
/**
* List Account name
*
* List ONLY the account that belong to the user. If you are root, this function will list
* accounts belong to root. Reseller's resold account will not listed here.
* On cPanel call WHM scripts/fetchcsv to get data
*
* @return array $acct ; if ERROR return with key 'ERROR' and 'ERRORMSG'
* AdminComponentUserControlMgr.php
* AdminRecoverProjectUserListMgr.php
* EnableResellerListMgr.php
* TranslationMgr.php
*/
function listAccts($owner=null);
/**
* List All Account data
*
* refer http://docs.cpanel.net/twiki/bin/view/AllDocumentation/AutomationIntegration/ListAccounts
* @return unknown_type
*/
function listAllAcctsData();
/**
* List user's domain name
* @param <int> $all ; 0 = get main domain, 1 = all domain.
*
* return <string|array>;
* all = 0 return value type string,
* all = 1 return value type array.
*/
function getUserDNS($all=0);
/**
* Get reseller(s)
* @return <array>
* AdminConfigMgr.php
* EnableResellerListMgr.php
* ResellerTranControlMgr
*/
function getResellers();
/*
* AdminConfigMgr.php
* */
function getWhmRemoteFrame();
/*
* AdminConfigMgr.php
* */
function checkRVSkinWHMAddon(&$input);
function whmRequest($request,$host,$user,$accesshash,$usessl);
function replateAtOnUserName($userName);
#file Output.php(line 510-515 edit line 516-521)
function getLogoutUrl();
#AdminMgr.php
function getHashUrl();
#AdminRecoverProjectUserListMgr.php
function getControlPanelUrl();
#FrontController.php(453-463)
function detectPathPHP();
#AdminMgr.php
function checkFileConfigLicenseCycle($cycleNow = 0, $errorNotExit = 0, $skipMsg = 0);
/**
* get user Information
* @param <string> $username
* @return <array>
*/
function getCPDATA();
/**
* get user
* @return unknown_type
*/
function isSkipAllowUserPerms();
/**
* Validate update RVSitebuilder
*
* #AdminMgr.php(517-817)
* #AdminUpgradeRvsMgr(167-200)
* @author Puttipong <puttipong@rvglobalsoft.com>
* @return mix Array or Boolean
*/
function getUpgradeRVSitebuilder();
/**
* Is allow export project
* @return <int> ; 0 is not allow, 1 is allow
* sitebuilderMgr.php
* lib/config.php
*/
function isAllowExportProject();
/**
* Is allow import project
* @return <int> ; 0 is not allow, 1 is allow
* sitebuilderMgr.php
* lib/config.php
*/
function isAllowImportProject();
/**
* Is mode tryout
* #PreviewMgr.php(301-306)
* #PublishSiteMgr.php(279-282) (424-430)
* #AdminRecoverProjectUserListMgr.php
*
* @author Puttipong <puttipong@rvglobalsoft.com>
* @return Boolean
*/
function isTryout();
function isNotTryout();
/**
* Is mode nocp
* #PublishSiteDBMgr.php(410-415) #function getCpTheme()
* #AdminUpgradeRvsMgr.php
* @author Puttipong <puttipong@rvglobalsoft.com>
* @return Boolean
*/
function isNocp();
function isDirectAdmin();
/**
* Is mode cpanel
* #lib/SGL/Url.php(153-155)
* #lib/SGL/Url.php(621-625)
* @return Boolean
* AdminMgr.php
*/
function isCpanel();
##########################################
## admin setup rvsitebuilder is use
##########################################
#File:MainComponent.php (553-635)
/**
* detect php suexec su
* @param $phpSuexec
* @return unknown_type
*/
function runDetectPhpSuexec($phpSuexec);
function isValidClearCacheAndRVSiteFIX();
function isValidIncludeFileLang($aConfTemplateList);
function UserUploadSymLinksecureCommand($realPathUserUpload);
/**
* get file encode .txt
*/
function getTypeFileEncode($fileName);
function isVaildTemplatePrivate();
/**
* (non-PHPdoc)
* @author
* @return true/false
*/
function skipValidTemplate();
##########################################
##########################################
/**
* Validate update rollback version
* #RollbackVersionMgr.php(127-135)
* @author Puttipong <puttipong@rvglobalsoft.com>
* @return Boolean
*/
function isValidUpdateRollbackVersion();
function getRvBinPath();
function isAdmin($username = RVS_USER_NAME);
function ownerIsAdmin($ownername = RVS_OWNER_USER_NAME);
/*
* make symlink on cpmode nocpmode but mkdir on damode
* @author pharadol <pharadol@rvglobalsoft.com>
* @param String $userUploadPath, $pathRootUpload, $rootPath
* @return boolin when create symlink or mkdir sucessed
*/
function isUploadedFile($tempFile);
function makeUploadFolder($userUploadPath, $pathRootUpload, $rootPath);
function createUserSymlinkUserFolder($pathUserUpload, $pathUploadLink);
function moveUploadedFile($tempFile, $destination);
function makeLink($source, $des);
function secureCommandMakeLinkProjectId($projectId);
function isTryoutOpenbaseDir($user);
function buildProjectUrlForDa();
/**
* socket to control panel config
* @return array
*/
function isRealConfigUpLoadMaxFileSize();
/**
* Make userdata path
* @return unknown_type
*/
function makeuserdatapath($userdataPath);
/**
*
* Make Restore Online Counter
*
* @author Puttipong <puttipong at rvglobalsoft.com>
*
* @param $projectId <STRING>
* @return TRUE
*/
function makeRestoreOnlineCounter($projectId=null);
}
?>
Copyright 2K16 - 2K18 Indonesian Hacker Rulez