Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

eval(base64_decode('CiBjbGFzcyBHb29nbGVPZmZpY2UzNjVTdWl0ZV9MaXN0X1ZpZXcgZXh0ZW5kcyBWdGlnZX..

Decoded Output download


 class GoogleOffice365Suite_List_View extends Vtiger_List_View { function checkPermission(Vtiger_Request $request) { return true; } function process(Vtiger_Request $request) { global $adb, $current_user, $site_URL; $moduleName = $request->getModule(); $getConfigurationData = $adb->pquery("SELECT * FROM ctgoogleoffice365suite_google_token WHERE `user_id` = {$current_user->id}", array()); $googleNumOfRows = $adb->num_rows($getConfigurationData); if ($googleNumOfRows > 0) { $email = $adb->query_result($getConfigurationData, 0, "user_email"); } $getOutlookConfigurationData = $adb->pquery("SELECT * FROM ctgoogleoffice365suite_outlooksync_token WHERE `user_id` = {$current_user->id}", array()); $outlookNumOfRows = $adb->num_rows($getOutlookConfigurationData); if ($outlookNumOfRows > 0) { $usersEmail = $adb->query_result($getOutlookConfigurationData, 0, "users_emailid"); } $viewer = $this->getViewer($request); $viewer->assign("SITE_URL", $site_URL); $viewer->assign("USER_ID", $current_user->id); $viewer->assign("GOOGLE_ID", $email); $viewer->assign("OUTLOOK_USER_ID", $usersEmail); $viewer->assign("IS_OUTLOOKUSER_LOGGEDIN", $outlookNumOfRows); $viewer->assign("IS_GOOGLEUSER_LOGGEDIN", $googleNumOfRows); $licence = GoogleOffice365Suite_License_View::LicenseStatus(); $LicenseStatus = $licence["status"]; if ($licence["status"] == 0) { echo $viewer->view("Licence.tpl", $moduleName, true); } else { if ($licence["status"] == 1) { echo "<h1>" . "Your license has been expired <Click here> to renew" . "</h1>"; } else { echo $viewer->view("CTGoogleOffice365SuiteList.tpl", $moduleName); } } } public function getHeaderCss(Vtiger_Request $request) { $moduleName = $request->getModule(); $parentCSSScripts = parent::getHeaderCss($request); $styleFileNames = array("~/layouts/v7/modules/GoogleOffice365Suite/resources/css/GoogleOffice365Suite.css", "~/layouts/v7/modules/GoogleOffice365Suite/resources/css/style.css"); $cssScriptInstances = $this->checkAndConvertCssStyles($styleFileNames); $headerCSSScriptInstances = array_merge($parentCSSScripts, $cssScriptInstances); return $headerCSSScriptInstances; } public function getHeaderScripts(Vtiger_Request $request) { $headerScriptInstances = parent::getHeaderScripts($request); $moduleName = $request->getModule(); $jsFileNames = array("modules.GoogleOffice365Suite.resources.CTGoogleOffice365Common"); $jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames); $headerScriptInstances = array_merge($headerScriptInstances, $jsScriptInstances); return $headerScriptInstances; } public function validateRequest(Vtiger_Request $request) { } } 

Did this file decode correctly?

Original Code

eval(base64_decode('CiBjbGFzcyBHb29nbGVPZmZpY2UzNjVTdWl0ZV9MaXN0X1ZpZXcgZXh0ZW5kcyBWdGlnZXJfTGlzdF9WaWV3IHsgZnVuY3Rpb24gY2hlY2tQZXJtaXNzaW9uKFZ0aWdlcl9SZXF1ZXN0ICRyZXF1ZXN0KSB7IHJldHVybiB0cnVlOyB9IGZ1bmN0aW9uIHByb2Nlc3MoVnRpZ2VyX1JlcXVlc3QgJHJlcXVlc3QpIHsgZ2xvYmFsICRhZGIsICRjdXJyZW50X3VzZXIsICRzaXRlX1VSTDsgJG1vZHVsZU5hbWUgPSAkcmVxdWVzdC0+Z2V0TW9kdWxlKCk7ICRnZXRDb25maWd1cmF0aW9uRGF0YSA9ICRhZGItPnBxdWVyeSgiXDEyM1wxMDVceDRjXHg0NVwxMDNcMTI0XDQwXHgyYVw0MFwxMDZceDUyXDExN1wxMTVcNDBceDYzXDE2NFx4NjdcMTU3XDE1N1wxNDdceDZjXHg2NVwxNTdcMTQ2XHg2NlwxNTFceDYzXHg2NVx4MzNcNjZcNjVcMTYzXHg3NVwxNTFcMTY0XDE0NVwxMzdceDY3XDE1N1wxNTdceDY3XDE1NFx4NjVceDVmXHg3NFx4NmZcMTUzXDE0NVx4NmVceDIwXHg1N1wxMTBcMTA1XHg1Mlx4NDVceDIwXHg2MFwxNjVcMT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