| 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 : |
<?php
include_once 'includes/main/WebUI.php';
global $adb;
$rsBlock=$adb->pquery("SELECT blockid FROM `vtiger_settings_blocks` WHERE label='LBL_MY_PREFERENCES'",array());
if($adb->num_rows($rsBlock)){
$blockid=$adb->query_result($rsBlock, 0, 'blockid');
if($blockid){
$max_id=$adb->getUniqueID('vtiger_settings_field');
if($max_id){
$adb->pquery("INSERT INTO `vtiger_settings_field` (`fieldid`, `blockid`, `name`, `description`, `linkto`, `sequence`) VALUES (?, ?, ?, ?, ?, ?)",array($max_id,$blockid,'Custom Theme', 'Custom Theme Option','index.php?parent=Settings&module=CustomThemeSetting&view=CustomThemeSetting','4'));
$adb->pquery("UPDATE vtiger_settings_field_seq SET id = ?",array($max_id));
echo "$max_id";
echo "<br/>";
echo "setting option added successfully";
}
}
}