code/LivePubHelper.php
public static function exec_php($code, $alwaysExec=false)
    {
        if (self::is_publishing()) {
            self::$init_code[] = $code;
            if ($alwaysExec) {
                eval($code);
            }
        } else {
            eval($code);
        }
    }
public static function exec_php($code, $alwaysExec=false)
    {
        if (self::is_publishing()) {
            self::$init_code[] = $code;
            if ($alwaysExec) {
                eval($code);
            }
        } else {
            eval($code);
        }
    }
evaluates the given php code unless we're currently publishing, in which case it
adds the php code to the initialization code.
NOTE: this will not return or output the result

@param string $code
@param bool   $alwaysExec
@return none