HEX
Server: Apache
System: Linux sg241.singhost.net 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64
User: honghock (909)
PHP: 8.0.30
Disabled: passthru,system,shell_exec,show_source,exec,popen,proc_open
Upload Files
File: //opt/cpanel/ea-php54/root/usr/share/pear/RVSeagullMod/lib/RVSGL/CpHandle/InterfaceForUser.php
<?php
interface CpHandle_InterfaceForUser
{
	function init();

	/**
     * @author nipaporn <nipaporn@webexperts.co.th>
     * @param
     * @return <boolean> true ,false
     * file rvsitebuilder/modules/default/classes/MaintenanceMgr.php
     * PublishSiteNewMgr.php
     */
	function doAddCronJob();
	function isValidClearCacheAndRVSiteFIX();
	/**
     * @author nipaporn <nipaporn@webexperts.co.th>
     * @param
     * @return path or false
     file update rvsitebuilder/lib/SGL/Task/Process.php line 1029
     */
    function getPathPHPsuexec();

	/**
	 * Get database missing in project(s) by user ID
	 * @param <string> $userID
	 * @return <array>
	 */
	function getProjectDbMissing($userID);

	/**
	 * Is allow export project
	 * @return <int> ; 0 is not allow, 1 is allow
	 */
	function isAllowExportProject();

	/**
	 * Is allow import project
	 * @return <int> ; 0 is not allow, 1 is allow
	 */
	function isAllowImportProject();


	/**
     * get home directory of user
     * @param <string> $username
     * @return <string>
     */
	function getHomeDir($username=RVS_USER_NAME);

	/**
	 * get user Information
	 * @param <string> $username
	 * @return <array>
	 * TryoutMgr.php
	 */
	function getCPDATA($username=RVS_USER_NAME);

	/**
	 * 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 real directory by domain name
	 *
	 * @param <string> $domain ; Domain is want get directory.
	 *
	 * @return <string>; path.
	 */
	function getRealDIRbyDomain($domain) ;

	/**
	 * Get database infomantion
	 * @return <array|PEAR::Error>; return array if success
	 *    $aReturn = array(
     *         'countdb' => '',
     *         'maxdb' => -1,
     *         'listdbs' => array(
     *              'dbname_1' => 'dbname_1', 'dbname_2' => 'dbname_2', 'dbname_n' => 'dbname_n'
     *         ),
     *         'listusers' => array('user_1' => 'user_1', 'user_2' => 'user_2', 'user_n' => 'user_n',)
     *     ), or return PEAR::Error if cannot get data
	 */
	function getDatabaseInfomation();

    /**
     * Create database
     * @param <string> $dbname
     * @return <bool>; return true is success, or return PEAR::Error if create database failed.
     */
	function doCreateDatabase($dbname);

    /**
     * Create database user name
     * @param <string> $username
     * @param <string> $passwd
     * @return <bool>; return true is success, or return PEAR::Error if create db user failed.
     */
	function doCreateDatabaseUser($username, $passwd);

	/**
	 * Add user privileges to database
	 * @param <string> $dbname
	 * @param <string> $username
	 * @return <bool>; return true is success, or return PEAR::Error if create db user failed.
	 */
	function doAddDBUser($dbname, $username);

	/**
	 * Drop database
	 * @param <string> $dbname
	 * @return <bool>; return true is success, or return PEAR::Error if create db user failed.
	 */
	function doDeleteDatabase($dbname);

	/**
	 * Delete database user
	 * @param <string> $username
	 * @return <bool>; return true is success, or return PEAR::Error if create db user failed.
	 */
	function doDeleteDatabaseUser($username);

	/**
	 * Get maximum disk quota usage
	 * @return <string|int>; return 'unlimited' or integer of maximum disk quota usage
	 * - PublishSiteNewMgr.php
	 */
	function getMaxUserQuota();

	/**
	 * Get usage disk quota
	 * @return <int>
	 * - PublishSiteNewMgr.php
	 */
	function getUserQuota();

	#WysiwygEditorObject.php
	function registerButtonOnlineCounter();

    /* ----------------------------------------------------------- */
	################ siwakorn/pharadol ################
    /* ----------------------------------------------------------- */

     /**
     * Is mode cpanel
     * #lib/SGL/Url.php(153-155)
     * #lib/SGL/Url.php(621-625)
     * @return Boolean
     * - PublishSiteDBMgr.php
     */
    function isCpanel();
    function isDirectAdmin();

    #File : RestoreProjectAjaxMgr.php
    #Line : 872-879
    function isLicenseValid();
   /**
      * #File : RestoreProjectAjaxMgr.php (Line : 972-979)
     * @author phaladon@rvglobalsoft.com
     * @param $rvsversion
     * @return $aMSG
     */
    function isMinRvsOK($versionExport);

    #File : RestoreProjectAjaxMgr.php (2110-2114)
    function replaceRelativeURL();

    /**
     * #File: Common.php (245-250)
     * This function process in tryout mode.
     * @author siwakorn@rvglobalsoft.com
     * @param $isPhpSuExec ( 0/1 )
     * @return <true>/<false>
     */
    function changePermissionRVSPreview($isPhpSuExec);

    /**
     * #File:Online_CounterMgr.php (180-190)
     * For process in cp mode
     * check counter is existing and make new counter.
     * @param $defCounterName <string> counter name
     * @author pharadol@rvglobalsoft.com
     */
    function getNewCounterExisting($counterName);
    /**
     * process in CPANEL
     * @author siwakorn induang
     * @param <string>$counterName
     * @return true / false
     * Online_CounterMgr.php
     */
    function validateCounterNameExisting($counterName);
    /**
     * process in CPANEL
     * @author siwakorn induang
     * @param <string>$counterName
     * @return true / false
     * Online_CounterMgr.php
     */
    function validateChangeCounterName($counterName);

    #File:Online_CounterMgr.php
    /**
     * update file counter
     * (non-PHPdoc)
     * @see sitebuilder/classes/CpHandle/CpHandle_InterfaceForUser#runUpdateFileCounterData($filePreview, $cpanelTagPreview, $counterName, $newCounter)
     */
    function runUpdateFileCounterData($filePreview, $cpanelTagPreview, $counterName, $newCounter);
    /**
     * run update file counter
     * (non-PHPdoc)
     * @see sitebuilder/classes/CpHandle/CpHandle_InterfaceForUser#runUpdateCounterData($cpanelTag, $counterName, $newCounter)
     * Online_CounterMgr.php
     */
    function runUpdateCounterData($cpanelTag, $counterName, $newCounter);

    #File:MainComponent.php (553-635)
    /**
     * detect php suexec su
     * @param $phpSuexec
     * @return unknown_type
     */
    function runDetectPhpSuexec($phpSuexec);

    #File: GeneralAPI.php(661-671)
    /**
     * tag html
     * (non-PHPdoc)
     * @see sitebuilder/classes/CpHandle/CpHandle_InterfaceForUser#cpanelHtmlTagCounter($counterTag)
     */
    function cpanelHtmlTagCounter($counterTag);

    #File: Online_FormMgr.php(397-497)
    /**
     * create new email
     * @see sitebuilder/classes/CpHandle/CpHandle_InterfaceForUser#createNewEmailcpSecurity()
     */
    function createNewEmailcpSecurity();

    #SiteBuilderMgr.php(340-345)
    /**
     * get account url
     * @return unknown_type
     */
    function tryoutGetBuyAccountUrl();

    #CreateDBforComponentMgr.php
     /**
     * input $dbname
     * check prefix and add prefix , return new dbname have prefix
     */
    function getRealFormatDBName($dbName);

    #/rvsitebuilder/lib/SGL/Config.php (line 316-324)
    /**
	 * defind path file config name
	 * @see sitebuilder/classes/CpHandle/CpHandle_InterfaceForUser#definedModulePathConfig($moduleName)
	 */
    function definedModulePathConfig($moduleName);

    #FrontController.php(453-463)
    /**
     * detac path file php.ini
     * @see sitebuilder/classes/CpHandle/CpHandle_InterfaceForAdmin#detectPathPHP()
     */
    function detectPathPHP();

    #lib/SGL/Manager.php(559-609)
    //function isValidloadTryoutConfig(); //รอปรับ
    #Modules/user/classes/LoginMgr.php
    /**
     * set cookie dedirect
     * @return unknown_type
     */
    function setCookieAndRedirect();


    #file Output.php(1562-1572)
    function isValidBuyAccountUrl();

    #file Output.php(1667-1677)
    /**
     * get url by tryout
     * @return unknown_type
     */
    function getUrlBackToTryout();

    #file Output.php(line 510-515 edit line 516-521)
    function getLogoutUrl();
     /**
     * #File : CommonTask.php (344-350)
     * @auther nipaporn <nipaporn@webexperts.co.th>
     * @param String $templateUserId,$templateItemFolder
     * @return Boolean
     */
    function isValidTemplateItemPath($templateUserId, $templateItemFolder);

     /**
     * #File : CommonTask.php (566-586)
     * @auther nipaporn <nipaporn@webexperts.co.th>
     * @param String $data, $rvsitebuilderUrl, $publichImgDefUrl
     * @return Boolean
     * file rvsitebuilder/modules/sitebuilder/classes/Publish/CommonTask.php line
     */
    function isValidDataHomeReplace($data);

     /**
     * #File : CommonTask.php (4170-4200) , (4155-4188)
     * @auther nipaporn <nipaporn@webexperts.co.th>
     * @param String $templateUserId,$templateItemFolder
     * @return Boolean
     * file rvsitebuilder/modules/sitebuilder/classes/Publish/CommonTask.php line 353
     */
    function isRecordPublishProject();

    /*
     * #File : SitePublishAjaxMgr.php
     * search:$addCronUtl = $oCp->runCpanelTa
     * Line:(1025-1030)  edite line
     * #File : PublishSiteDBMgr.php// พี่หนิงทำ
     * Line: (1059,1062)
     */
    function actionAJExternal($url);

    /**
     * #TemplateList.php(456-459)
     * #function _getImportTemplateData() done
     * @auther nipaporn <nipaporn@webexperts.co.th>
     * @param none
     * @return Boolean
     */
    function isVaildTemplatePrivate();

    /**
     * #TemplateList.php(499-455)
     * default function
     * #SitebuilderMgr.php
     */
    function isNotTryout();

    #TemplateList.php(747-750)
    function isValidIncludeFileLang($aConfTemplateList);


    #WysiwygEditorObject.php(237)
    //ไฟล์นี้เลิกใช้แล้วเอาไว้ดูเป็นตัวอย่างในการปรับ Wysiwyg
    //หากไม่ได้ใช้งาน แนะนำ ให้เปลี่ยนชื่อเป็น .bak เหมือน Cpanel.php ครับผมอิอิจะได้ไม่งงครับ

    ################ witooon ################
    /**
    * validate license
    * @see sitebuilder/classes/CpHandle/CpHandle_InterfaceForUser#isDisableBlogComponent()
    */
	function isDisableBlogComponent();

	/**
	 * theme is dir or is symlink
	 * for rvskin theme only use managedbs.html but theme x, x3 use index.html
	 * @see sitebuilder/classes/CpHandle/CpHandle_InterfaceForUser#getDatabaseEditURL()
	 */
	function getDatabaseEditURL();
	/**
	 * get temp path
	 * @return unknown_type
	 */
	function getTmpPath();

	/**
     * (non-PHPdoc)
     * @author
     * @return true/false
     */
	function skipValidTemplate();

	/**
     * get file encode .txt
     * @see sitebuilder/classes/CpHandle/CpHandle_InterfaceForUser#getTypeFileEncode($fileName)
     */
	function getTypeFileEncode($fileName);

	/**
	 * replace user name
	 * @param $userName
	 * @return unknown_type
	 */
    function replateAtOnUserName($userName);
	//function getHashUrl();
	function isSkipAllowUserPerms();
	/**
	 * isQuotaUser
	 * @param int $quota = Quota  percent  EX want validat this quota more than 90% show error
	 * @return string javascript
	 */
	function getPathQuotaUser($aPath);
	/**
	 *  get doc root
	 * @return unknown_type
	 */
	function getDocroot();
	function getCpUserInfo();
	function getFileManagerUrlByUser($username);

    ################ puttipong ################
	/**
     * Is mode tryout
     * #file PreviewMgr.php(301-306)
     * #PublishSiteMgr.php(279-282) (424-430)
     * #PreviewMgr.php
     * #DiyTemplateAjaxMgr.php
     *
     * @author Puttipong <puttipong@rvglobalsoft.com>
     * @return Boolean
     */
    function isTryout();

    /**
     * Is mode nocp
     * #PublishSiteDBMgr.php(410-415) #function getCpTheme()
     * #PublishSiteMgr.php
     * @author Puttipong <puttipong@rvglobalsoft.com>
     * @return Boolean
     */
    function isNocp();

	/**
	 * file PageStructureMgr.php(1476-1480)
     * Get url for edit database
     *
     * @author Puttipong <puttipong@rvglobalsoft.com>
     * @return String
     */
    function getUrlDb();

    /**
     * Validate component db on flexy
     * #file PageStructureMgr.php(108-118)
     * @author Puttipong <puttipong@rvglobalsoft.com>
     * @return Boolean
     */
    function isValidCompoDbFlexy();

	/**
    * #File : TryoutMgr.php
    */
     /**
     * Make update tryout
     * - TryoutMgr.php
     * @author Puttipong <puttipong@rvglobalsoft.com>
     * @return Object
     */
    function makeUpdateTryout();

     /**
     * Make update tryout login config
     * - TryoutMgr.php
     * @author Puttipong <puttipong@rvglobalsoft.com>
     * @param Boolean $isAutoApproval
     * @param String $subdomainPath
     */
     function makeUpdateTryoutLoginConf($isAutoApproval = false, $subdomainPath = null);

         /**
     * Make remove tryout
     * - TryoutMgr.php
     * @author Puttipong <puttipong@rvglobalsoft.com>
     * @param Array $option
     */
    function makeRemoveTryout($option = array());

    /**
	 * Validate update rollback version
     * #RollbackVersionMgr.php(127-135)
     * @author Puttipong <puttipong@rvglobalsoft.com>
     * @return Boolean
     */


    /**
     * Validate phpsu in XML
     * #RvPublishXmlTask.php(446-450)
     * @author Puttipong <puttipong@rvglobalsoft.com>
     * @return Boolean
     */
    function isValidPhpsuModeXml();


    /**
     * Validate component db on mode
     * #RvsCategoryMgr.php(67-70)
     * #PageStructureMgr.php(993-999)
     * @author Puttipong <puttipong@rvglobalsoft.com>
     * @return Boolean
     */
    function isValidCompoDbMode();


    /**
     * Validate create project on mode.
     * #File: CreateProjectMgr.php (122-126) and (546-548)
     * @author Puttipong <puttipong@rvglobalsoft.com>
     * @return Boolean
     */
    function isValidCreateProject();

    /**
     * Validate get html tag counter
     * File:GeneralAPI.php Line:666-670
     * @author Puttipong <puttipong@rvglobalsoft.com>
     * @return Boolean
     */
    function isValidHtmlTagCounter();

	/**
     * Make folder component in scripts project path.
     * - cBlogUserMgr.php
     * - cComponentAndUserFrameworkUserMgr.php
     * - cFaqUserMgr.php
     * - cForumsUserMgr.php
     * - cNewsletterUserMgr.php
     * - cPhotoGalleryUserMgr.php
     * - TryoutUserControlMgr.php
     *
     * @author Puttipong <puttipong@rvglobalsoft.com>
     * @param String $pathComponentName
     * @return mix PEAR error or Boolean True
     */
    function makeFolderComponent($pathComponentName = null);

     /**
     * Get path image diy in mode wysiwyg
     *
     * @author Puttipong <puttipong@rvglobalsoft.com>
     * @param String $pathImg
     * @return String Path image diy in mode wysiwyg
     * - DiyTemplateAjaxMgr.php
     */
    function getPathImgWysDiy($pathImg = null);

    function replacePreviewOnlineCounter($cpanelCounterTag);
    function getRvBinPath();
    function isAdmin($username = RVS_USER_NAME);
    function ownerIsAdmin($ownername = RVS_OWNER_USER_NAME);
    function createAutoDatabase($buildDBName, $buildDBUsername, $buildDBPasswd);
    /*
     * 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 makeUploadFolder($userUploadPath, $pathRootUpload, $rootPath);
    function createUserSymlinkUserFolder($pathUserUpload, $pathUploadLink);
    function isUploadedFile($tempFile);
    function moveUploadedFile($tempFile, $destination);
    function makeLink($source, $des);
    function secureCommandMakeLinkProjectId($projectId);
    function msgWaringOpenBaseDir();
    function buildProjectUrlForDa();
    function createLinkFolder($fullPath, $fileZip);
    function createLinkFileAndFolder($fullPath);
    function makeFolderLink($fullPath, $folderName);
    function makeImageLink($fullPath, $filename);
    /**
     * socket to control panel config
     * @return array
     */
    function isRealConfigUpLoadMaxFileSize();

    /**
     * Make userdata path
     * @return unknown_type
     */
    function makeuserdatapath($userdataPath);

    function replaceUrlToNobase($data);

    function makeFileQuota($dnsPublish);

    /**
     *
     * Make Restore Online Counter
     *
     * @author Puttipong <puttipong at rvglobalsoft.com>
     *
     * @param $projectId <STRING>
     * @return TRUE
     */
    function makeRestoreOnlineCounter($projectId=null);

    function getPublishMsgHttps($domain = '');

    function detectCpanelProxyMsg();

    function getMySQLVersion();
    function getPHPVersion();
    function getPerlVersion();
    function getPhpHandler();

    /**
     * return user & database name by control panel
     */
    function getDBMinChaName($name = '');
}

?>