Parse error: parse error, unexpected T_BOOLEAN_AND in /path/local/home/path/xx

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Adult Site Traffic
    Confirmed User
    • Mar 2003
    • 5093

    #1

    Parse error: parse error, unexpected T_BOOLEAN_AND in /path/local/home/path/xx

    Anyone have a clue what this problem would be? I can't find it.

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    	<title>Add gallery</title>
    <link href="class.css" rel="stylesheet" type="text/css">
    </head>
    <BODY text=#000000 bgColor=#cecece>
    <?
    require "global.php";
    require "define.php";
    require "lang.ini.php";
    $mass_lang = @explode(";", $awiz_lang);
    
    $link = mysql_connect($hostName, $userName, $password);
    mysql_select_db($databaseName, $link);
    if(!$name || !$path || !$url || !$def_path || (trim($thumb) != '' && !file_exists(trim($path).trim($url)."/".trim($thumb))))
    {
     echo "<br><center><font face=\"Verdana\" size=\"2\" color=\"Red\"><b>Error: All the fields are mandatory!</b></font><br>";
     if(!$name){ echo "<b>Enter name of set</b><br>"; }
     if(!$path){ echo "<b>Enter Full path to set on the server</b><br>"; }
     if(!$url){ echo "<b>Enter Set url</b><br>"; }
     if(!$def_path){ echo "<b>Enter define url</b><br>"; }
     if(trim($thumb) != '' && !file_exists(trim($path).trim($url)."/".trim($thumb))){ echo "<b>File '".trim($path).trim($url)."/".trim($thumb)."' does not exist</b><br>"; }
     echo "</center>";
     exit;
    }
    
    if(!$key && $word hahahaha '')
    {
     echo "<br><center><font face=\"Verdana\" size=\"2\" color=\"Red\"><b>Error: Select or insert key word!</b></font></center>";
     exit;
    }
    
    
    if(!isset($key))$key = array();
    if(isset($word) && $word != '')
    {
     $array = split(';', $word);
     foreach ($array as $n => $v)
             {
    		  $select = "select * from key_word where word='".trim($v)."'";
    		  $result = mysql_query($select);
              if(mysql_num_rows($result) hahahaha 0 && trim($v) != '')
                                           {
    									    $insert = "insert into key_word(word)
                                                                     values('".trim($v)."')";
                                            if(!mysql_db_query($databaseName, $insert))
                                                {
                                                 echo "Error insert: $insert";
                                                 exit;
                                                 }
    									   }
              if(!in_array($v, $key) & $v != '')
              array_push($key, $v);
             }
    }
    $list = join(';', $key);
    
    if(!isset($day) || !isset($month) || !isset($year))
    {
     echo "<br><center><font face=\"Verdana\" size=\"2\" color=\"Red\"><b>Error all fields of date are mandatory!</b></font></center>";
     exit;
    }
    if($month hahahaha 2 && !is_int($year/4) && $day > 28 )
    {
     echo "<br><center><font face=\"Verdana\" size=\"2\" color=\"Red\"><b>Unexisting date ($day/$month/$year)!</b></font></center>";
     exit;
    }
    if($month hahahaha 2 && is_int($year/4) && $day > 29 )
    {
     echo "<br><center><font face=\"Verdana\" size=\"2\" color=\"Red\"><b>Unexisting date ($day/$month/$year)!</b></font></center>";
     exit;
    }
    if($day hahahaha 31 && in_array($month, array("2", "4", "6", "9", "11")))
    {
     echo "<br><center><font face=\"Verdana\" size=\"2\" color=\"Red\"><b>Unexisting date ($day/$month/$year)!</b></font></center>";
     exit;
    }
    
    $time = mktime("00", "01", "01", $month, $day, $year);
    
    $time_disable = '';
    $time_repub = '';
    if($disable != '' && $repub != ''){ $time_disable = ($time + ($disable * 86400 * 30));  $time_repub = ($time_disable + ($repub * 86400 * 30)); }
    elseif($disable != '' && $repub hahahaha ''){ $time_disable = ($time + ($disable * 86400 * 30));  $time_repub = $time_disable; }
    elseif($disable hahahaha '' && $repub != ''){ $time_repub = ($time + ($repub * 86400 * 30)); $time_disable = $time_repub; }
    
    if(isset($movietype))
    {
     $list = $movietype;
    }
    
    if(trim($thumb) != '')
    $thumpath = trim($path).trim($url)."/".trim($thumb);
    else
    $thumpath = '';
    
    
    $insert = "insert into sets(name, url, word, sample, icon, dates, day, path, thumb, madethumbs, text, disable, time_disable, repub, time_repub, banner_zone)
                 values('$name', '".trim($def_path).trim($url)."/', '$list', '0', '".trim($def_path).trim($url)."/icon.jpg', '$time', '".date("d F Y", $time)."', '".trim($path).trim($url)."/', '".$thumpath."', 'NO', '".$describe."', '$disable', '$time_disable', '$repub', '$time_repub', '$cross_sales')";
    
    if(count($mass_lang) > 0)
    {
     $ins_first = "insert into sets(name, url, word, sample, icon, dates, day, path, thumb, madethumbs, text, disable, time_disable, repub, time_repub, banner_zone";
     $ins_second = "values('$name', '".trim($def_path).trim($url)."/', '$list', '0', '".trim($def_path).trim($url)."/icon.jpg', '$time', '".date("d F Y", $time)."', '".trim($path).trim($url)."/', '".$thumpath."', 'NO', '".$describe."', '$disable', '$time_disable', '$repub', '$time_repub', '$cross_sales'";
     for($i = 0; $i < count($mass_lang); $i ++)
     {
      if(trim($mass_lang[$i]) hahahaha '')continue;
      foreach($HTTP_POST_VARS as $key=>$value)
      {
       if($key hahahaha trim($mass_lang[$i])."_name")$lang_name = $value;
       if($key hahahaha trim($mass_lang[$i])."_describe")$lang_describe = $value;
      }
      $ins_first .= ", ".trim($mass_lang[$i])."_name, ".trim($mass_lang[$i])."_text";
      $ins_second .= ", '".$lang_name."', '".$lang_describe."'";
     }
     $ins_first .= ")";
     $ins_second .= ")";
     $insert = $ins_first . $ins_second;
    }
    
    
    if(!mysql_query($insert))
    {
     echo "Error insert: $insert";
     exit;
    }
    
    
    $dir = opendir(trim($path).trim($url)."/");
    while ($s = readdir($dir)){
                               if($s!='.' && $s!='..'  && !ereg("icon.[jJ][pP][gG]", $s) && !ereg("^(tn_)", $s))
    						                        {
               										 if(!isset($array))$array = array($s);
    			   								     else array_push($array, $s);
                                                    }
       	     				  }
    
    $tempa = split('\.', $array[0]);
    
    if(($create_thumb hahahaha 1 || $create_icon hahahaha 1) && && f_type($tempa) hahahaha 'image')
    {
     echo "<script language=\"JavaScript\">
     open ('make_thumbs_set.php?rowid=".mysql_insert_id()."&create_thumb=".$create_thumb."&create_icon=".$create_icon."&make_mark=".$make_mark."', '".mysql_insert_id()."'); 
     </script>";
    }
    
    if(($create_thumb hahahaha 1 || $create_icon hahahaha 1) && && f_type($tempa) hahahaha 'video')
    {
     echo "<script language=\"JavaScript\">
     open ('/video_thumb/make_video_thumb.php?rowid=".mysql_insert_id()."&create_thumb=".$create_thumb."&create_icon=".$create_icon."', '".mysql_insert_id()."'); 
     </script>";
    }
    
    if(COPYOUT hahahaha "1" && $create_icon != 1)
    {
     if(!file_exists(trim($path).trim($url)."/icon.jpg"))
        echo "<center><br><font face=\"Verdana\" size=\"1\">Can not copy icon of sets out of members area.<br>File ".trim($path).trim($url)."/icon.jpg does not exist!</font></center><br>";
     else
        {
         if(copy(trim($path).trim($url)."/icon.jpg", "../awizicon/".mysql_insert_id().".jpg"))
         echo "<br><center><font face=\"Verdana\" size=\"2\"><b>Icon of set was copied to ../awizicon/".mysql_insert_id().".jpg</b></font></center>";
         else echo "<br><center><font face=\"Verdana\" size=\"2\" color=\"Red\"><b>Can not copy file ".trim($path).trim($url)."/icon.jpg  to ../awizicon/".mysql_insert_id().".jpg</b></font></center>";
    	}
    }
    
    echo "<br><center><font face=\"Verdana\" size=\"2\"><b>Set - '$name', was added!</b></font></center>";
    echo "<br><center><font face=\"Verdana\" size=\"2\">This set will be published in main list ".date("d F Y", $time)."</font></center>";
    echo "<br><center><a href=\"add.php\" class=\"link\"><font face=\"Verdana\" size=\"2\"><b>Add new set</b></font></a></center>";
    echo "<br><center><font face=\"Verdana\" size=\"1\"><b><a href=\"index.php\" 
           class=\"link\">Back to admin page</a></b></font></center>";
    
    
    function f_type()
    {
     global $tempa;
     $videotype = array('avi', 'mpeg', 'mpg', 'mpe', 'mov', 'wmv', 'ivf', 'qt', 'asf');
     $imagetype = array('jpg', 'jpeg', 'gif', 'bmp', 'png', 'tiff', 'art');
     if(in_array (strtolower($tempa[1]), $videotype))
      $type = 'video';
     elseif(in_array (strtolower($tempa[1]), $imagetype))
      $type = 'image';
     else
      $type = 'other';
     return $type;
    }
    ?>
    </body>
    </html>

    ALL Domains and Websites are GOING AWAY NOW! Ask me!
    Many great domains, mainstream and adult, some complete sites with databases, some names with traffic and PR, some investment quality names. Come take a look! { Traffic Orders: Please go here }

    .:: SHARPEN the Elite - BURN the leftovers! Ooh-Rah!! ::.
  • Voodoo
    ♥ ♦ ♣ ♠
    • Sep 2002
    • 10600

    #2
    Does the error show a line number?

    "I'm selflessly supporting the common good, but only coincidentally looking out for No.1."

    Comment

    • arnette
      Confirmed User
      • Feb 2005
      • 283

      #3
      this line, although looks like gfy has replaced shit
      if(!$key && $word hahahaha '')

      icq me 243680554 and ill fix it for you

      Comment

      • Adult Site Traffic
        Confirmed User
        • Mar 2003
        • 5093

        #4
        Originally posted by Voodoo
        Does the error show a line number?
        2011389058.dll on line 141

        Sorry, it got cropped out.

        ALL Domains and Websites are GOING AWAY NOW! Ask me!
        Many great domains, mainstream and adult, some complete sites with databases, some names with traffic and PR, some investment quality names. Come take a look! { Traffic Orders: Please go here }

        .:: SHARPEN the Elite - BURN the leftovers! Ooh-Rah!! ::.

        Comment

        • Adult Site Traffic
          Confirmed User
          • Mar 2003
          • 5093

          #5
          Originally posted by arnette
          this line, although looks like gfy has replaced shit
          if(!$key && $word hahahaha '')

          icq me 243680554 and ill fix it for you
          if(!$key && $word =*= '') (no *)

          ALL Domains and Websites are GOING AWAY NOW! Ask me!
          Many great domains, mainstream and adult, some complete sites with databases, some names with traffic and PR, some investment quality names. Come take a look! { Traffic Orders: Please go here }

          .:: SHARPEN the Elite - BURN the leftovers! Ooh-Rah!! ::.

          Comment

          • arnette
            Confirmed User
            • Feb 2005
            • 283

            #6
            if(!isset($key) && $word = = '')

            (remove space between =)

            Comment

            • Adult Site Traffic
              Confirmed User
              • Mar 2003
              • 5093

              #7
              Originally posted by arnette
              if(!isset($key) && $word = = '')

              (remove space between =)
              You are a genious. I think. First I have to figure out how to allow my server to re-upload a .dll file

              ALL Domains and Websites are GOING AWAY NOW! Ask me!
              Many great domains, mainstream and adult, some complete sites with databases, some names with traffic and PR, some investment quality names. Come take a look! { Traffic Orders: Please go here }

              .:: SHARPEN the Elite - BURN the leftovers! Ooh-Rah!! ::.

              Comment

              • Adult Site Traffic
                Confirmed User
                • Mar 2003
                • 5093

                #8
                uhhu.

                Parse error: parse error, unexpected T_BOOLEAN_AND

                on line 141

                ALL Domains and Websites are GOING AWAY NOW! Ask me!
                Many great domains, mainstream and adult, some complete sites with databases, some names with traffic and PR, some investment quality names. Come take a look! { Traffic Orders: Please go here }

                .:: SHARPEN the Elite - BURN the leftovers! Ooh-Rah!! ::.

                Comment

                Working...