Changeset 31


Ignore:
Timestamp:
Mar 18, 2010, 7:22:07 AM (14 years ago)
Author:
roby
Message:

Eliminati ulteriori messaggi notice di php

Location:
trunk/admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/admin.php

    r23 r31  
    278278    $lang=strlen($_SESSION['lang'])==2 ? $_SESSION['lang']: $language;
    279279    if (isset($param['id_comune'])) $id_comune=intval($param['id_comune']);
     280    if (!isset($id_comune)) $id_comune=0;
    280281    session_regenerate_id();
    281282    $id_ses=session_id();
  • trunk/admin/modules/Elezioni/ele_configurazione.php

    r2 r31  
    168168                                }
    169169#displayerrors='$displayerrors',
    170                 $result = mysql_query("update  ".$prefix."_config set testata='$stemmablob', nome_testata='$stemmanome', blocco='$blocco', multicomune='$multicomune', language='$language2', siteistat='$siteistat', adminmail='$adminmail', sitename='$sitename', site_logo='$site_logo', siteurl='$siteurl', flash='$flash2', tema='$tema2',gkey='$gkey',ed_user='$ed_user',googlemaps='$googlemaps',editor='$editor',tema_on='$tema_on' ", $dbi) || die("Errore di aggiornamento dei dati!".mysql_error());
     170#per il momento non Ú usato: , site_logo='$site_logo'
     171                $result = mysql_query("update  ".$prefix."_config set testata='$stemmablob', nome_testata='$stemmanome', blocco='$blocco', multicomune='$multicomune', language='$language2', siteistat='$siteistat', adminmail='$adminmail', sitename='$sitename', siteurl='$siteurl', flash='$flash2', tema='$tema2',gkey='$gkey',ed_user='$ed_user',googlemaps='$googlemaps',editor='$editor',tema_on='$tema_on' ", $dbi) || die("Errore di aggiornamento dei dati!".mysql_error());
    171172        if ($tema2=='facebook')
    172173                $_SESSION['tema']=$tema2;
  • trunk/admin/modules/Elezioni/ele_widget.php

    r2 r31  
    4747############# controllo dei widget
    4848        make_db_widget(); // crea tabella se non esiste
    49    
     49    $tlist='';
    5050        $path = "../client/modules/Elezioni/blocchi";
    5151        $handle=opendir($path);
  • trunk/admin/modules/Elezioni/restore.php

    r2 r31  
    2020include("modules/Elezioni/ele.php");
    2121ele();
    22  if (!is_uploaded_file($_FILES['datafile']['tmp_name']))
     22if (isset($_FILES['datafile']['tmp_name'])) $updfile=$_FILES['datafile']['tmp_name']; else $updfile='';
     23 if (!is_uploaded_file($updfile))
     24# if (!is_uploaded_file($_FILES['datafile']['tmp_name']))
    2325# if (file_exists($datafile))
    2426        {
     
    5254                $currentLine++;
    5355                while($currentLine <= $cntFile ){
    54                         $appo=substr($arrFile[$currentLine],1,-2);
    55                         if ($appo==$tabs[($x+1)]){ $x++; break;}
     56                        if(isset($arrFile[$currentLine]))
     57                                $appo=substr($arrFile[$currentLine],1,-2);
     58                        else $appo='';
     59                        if(isset($tabs[($x+1)]))
     60                                if ($appo==$tabs[($x+1)]){ $x++; break;}
     61                        elseif($appo=='') { $x++; break;}
    5662                        $conta[$x]++;
    5763                        $currentLine++;
     
    6470        $y=0;
    6571    while( $currentLine <= $cntFile ){
    66                 $tab=substr($arrFile[$currentLine],1,-2);
    67                 $conf=$tabs[$x];
     72                if(isset($arrFile[$currentLine]))
     73                        $tab=substr($arrFile[$currentLine],1,-2);
     74                else $tab='';
     75                if(isset($tabs[$x]))
     76                        $conf=$tabs[$x];
     77                else $conf='';
    6878                if ($tab==$conf){
    6979                        $currentLine++;
    7080                        while($currentLine <= $cntFile ){
    71                                 $appo=substr($arrFile[$currentLine],1,-2);
    72                                 if ($appo==$tabs[($x+1)]){ $x++; break;}
     81#                               $appo=substr($arrFile[$currentLine],1,-2);
     82#                               if ($appo==$tabs[($x+1)]){ $x++; break;}
     83                                if(isset($arrFile[$currentLine]))
     84                                        $appo=substr($arrFile[$currentLine],1,-2);
     85                                else $appo='';
     86                                if(isset($tabs[($x+1)]))
     87                                        if ($appo==$tabs[($x+1)]){ $x++; break;}
     88                                elseif($appo=='') { $x++; break;}
     89                                if(isset($arrFile[$currentLine]))                               
    7390                                        $test=explode(':',$arrFile[$currentLine]); if(!is_array($test)) {die("errore di import<br>");}
    7491                                $valori='';
Note: See TracChangeset for help on using the changeset viewer.