tbrehm
2011-12-13 cd9d3801efe9c82e632468f275d01572568c9695
Fixed some PHP notices.
4 files modified
21 ■■■■ changed files
interface/lib/classes/plugin.inc.php 2 ●●● patch | view | raw | blame | history
interface/lib/classes/tform.inc.php 11 ●●●●● patch | view | raw | blame | history
interface/web/dashboard/dashboard.php 4 ●●●● patch | view | raw | blame | history
remoting_client/examples/sites_web_domain_add.php 4 ●●●● patch | view | raw | blame | history
interface/lib/classes/plugin.inc.php
@@ -136,7 +136,7 @@
         global $app;
         //* execute the functions for the events
        if(is_array($_SESSION['s']['plugin_cache'][$event_name])) {
        if(@is_array($_SESSION['s']['plugin_cache'][$event_name])) {
            foreach($_SESSION['s']['plugin_cache'][$event_name] as $rec) {
                $plugin_name = $rec['plugin'];
                $function_name = $rec['function'];
interface/lib/classes/tform.inc.php
@@ -364,7 +364,12 @@
                        $record = $this->decode($record,$tab);
                        if(is_array($record)) {
                                foreach($this->formDef['tabs'][$tab]['fields'] as $key => $field) {
                                        $val = $record[$key];
                                        if(isset($record[$key])) {
                                            $val = $record[$key];
                                        } else {
                                            $val = '';
                                        }
                                        // If Datasource is set, get the data from there
                                        if(isset($field['datasource']) && is_array($field['datasource'])) {
@@ -478,7 +483,11 @@
                                        break;
                                        default:
                                            if(isset($record[$key])) {
                                                $new_record[$key] = htmlspecialchars($record[$key]);
                                            } else {
                                                $new_record[$key] = '';
                                            }
                                        }
                                }
                        }
interface/web/dashboard/dashboard.php
@@ -100,14 +100,14 @@
    $this_fullversion = (($this_version[0] < 10) ? '0'.$this_version[0] : $this_version[0]) .
                ((isset($this_version[1]) && $this_version[1] < 10) ? '0'.$this_version[1] : $this_version[1]) .
                ((isset($this_version[2]) && $this_version[2] < 10) ? '0'.$this_version[2] : $this_version[2]) .
                ((isset($this_version[3]) && $this_version[3] < 10) ? (($this_version[3] < 1) ? '00' : '0'.$this_version[3]) : $this_version[3]);
                ((isset($this_version[3]) && $this_version[3] < 10) ? (($this_version[3] < 1) ? '00' : '0'.$this_version[3]) : @$this_version[3]);
    $new_version = explode(".",$v2);
    $new_fullversion =  (($new_version[0] < 10) ? '0'.$new_version[0] : $new_version[0]) .
                ((isset($new_version[1]) && $new_version[1] < 10) ? '0'.$new_version[1] : $new_version[1]) .
                ((isset($new_version[2]) && $new_version[2] < 10) ? '0'.$new_version[2] : $new_version[2]) .
                ((isset($new_version[3]) && $new_version[3] < 10) ? (($new_version[3] < 1) ? '00' : '0'.$new_version[3]) : $new_version[3]);
                ((isset($new_version[3]) && $new_version[3] < 10) ? (($new_version[3] < 1) ? '00' : '0'.$new_version[3]) : @$new_version[3]);
    if($new_fullversion > $this_fullversion) {
        $info[] = array('info_msg' => 'There is a new Version of ISPConfig 3 available!<br>' . 
            'This Version: ' . $v1 . '<br>' . 
remoting_client/examples/sites_web_domain_add.php
@@ -18,8 +18,8 @@
    $client_id = 1;
    
    $params = array(
            'server_id' => 0,
            'ip_address' => '',
            'server_id' => 1,
            'ip_address' => '*',
            'domain' => 'test2.int',
            'type' => 'vhost',
            'parent_domain_id' => 0,