HEX
Server: Apache
System: Linux sg241.singhost.net 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64
User: honghock (909)
PHP: 8.0.30
Disabled: passthru,system,shell_exec,show_source,exec,popen,proc_open
Upload Files
File: //opt/alt/php54/usr/share/pear/RVSeagullMod/modules/default/classes/mgrTemplates/update.tmpl
        $%mgrName% = DB_DataObject::factory($this->conf['table']['%mgrName%']);
        $%mgrName%->%mgrName%_id = $input->%mgrName%Id;
        $%mgrName%->find(true);
        $%mgrName%->setFrom($input->%mgrName%);
        $success = $%mgrName%->update();

        if ($success !== false) {
            SGL::raiseMsg('%mgrName% update successfull', false, SGL_MESSAGE_INFO);
        } else {
            SGL::raiseError('%mgrName% update NOT successfull',
                SGL_ERROR_NOAFFECTEDROWS);
        }