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/mequitecbeta.crmtiger.com/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/mequitecbeta.crmtiger.com/addProductCustomField.php
<?php
$Vtiger_Utils_Log = true;
include_once('vtlib/Vtiger/Module.php');

$moduleInstance = Vtiger_Module::getInstance('Products');

$blockInstance = new Vtiger_Block(); 
$blockInstance->label = 'LBL_WOOCOMMERCE_INFORMATION'; 
$moduleInstance->addBlock($blockInstance);

//$blockInstance = Vtiger_Block::getInstance('LBL_PRODUCT_INFORMATION', $moduleInstance);

/*$fieldInstance = new Vtiger_Field(); 
$fieldInstance->name = 'url';
$fieldInstance->label = 'URL'; 
$fieldInstance->table = $moduleInstance->basetable; 
$fieldInstance->column = 'url'; 
$fieldInstance->columntype = 'VARCHAR(255)'; 
$fieldInstance->uitype = 17; 
$fieldInstance->typeofdata = 'V~O'; 
$blockInstance->addField($fieldInstance);

$fieldInstance1 = new Vtiger_Field(); 
$fieldInstance1->name = 'tags_label';
$fieldInstance1->label = 'Label'; 
$fieldInstance1->table = $moduleInstance->basetable; 
$fieldInstance1->column = 'tags_label'; 
$fieldInstance1->columntype = 'TEXT'; 
$fieldInstance1->uitype = 21; 
$fieldInstance1->typeofdata = 'V~O'; 
$blockInstance->addField($fieldInstance1);

$fieldInstance2 = new Vtiger_Field(); 
$fieldInstance2->name = 'video1';
$fieldInstance2->label = 'Video 1'; 
$fieldInstance2->table = $moduleInstance->basetable; 
$fieldInstance2->column = 'video1'; 
$fieldInstance2->columntype = 'VARCHAR(255)'; 
$fieldInstance2->uitype = 17; 
$fieldInstance2->typeofdata = 'V~O'; 
$blockInstance->addField($fieldInstance2);

$fieldInstance3 = new Vtiger_Field(); 
$fieldInstance3->name = 'video2';
$fieldInstance3->label = 'Video 2'; 
$fieldInstance3->table = $moduleInstance->basetable; 
$fieldInstance3->column = 'video2'; 
$fieldInstance3->columntype = 'VARCHAR(255)'; 
$fieldInstance3->uitype = 17; 
$fieldInstance3->typeofdata = 'V~O'; 
$blockInstance->addField($fieldInstance3);

$fieldInstance4 = new Vtiger_Field(); 
$fieldInstance4->name = 'manufacturer_name';
$fieldInstance4->label = 'Manufacturer Name'; 
$fieldInstance4->table = $moduleInstance->basetable; 
$fieldInstance4->column = 'manufacturer_name'; 
$fieldInstance4->columntype = 'VARCHAR(255)'; 
$fieldInstance4->uitype = 2; 
$fieldInstance4->typeofdata = 'V~O'; 
$blockInstance->addField($fieldInstance4);*/
?>

Youez - 2016 - github.com/yon3zu
LinuXploit