array('http://dcexel.free.fr/programmes/_html/index.html',null,1), 'Thomson' => array('http://dcmoto.free.fr/programmes/_html/index.html',null,3), 'Thomson2' => array('http://mo5.free.fr/title1.html',null,4), 'Alice' => array('http://alice32.free.fr/soft/_html/index.html',null,1), 'vg5000' => array('http://dcvg5k.free.fr/programmes/_html/index.html',null,1), 'hector' => array('http://dchector.free.fr/index.html',null,2,'k7/_html'), ); $searchs = array( '1' => array('Editeur :','Auteur :' ,'Editeurs :' ,'Auteurs :','Année :'), '3' => array('Editeur :','Auteur :' ,'Editeurs :' ,'Auteurs :','Année :'), '2' => array('Editeur:' ,'Auteur:' ,'Editeurs:' ,'Auteurs:' ,'Version:'), ); /* $runs = implode('', file($_GET["source"]."/run.txt")); $runs = explode ("\n", $runs); foreach ($runs as $run) { $run = explode("\t", $run); $sides[$run[0]][1] = $run[1]; } */ print "
";

foreach ($sides as $key => $side)
{
	print "".$key." ".$side[1]."\n";
}

if ($_GET["system"])
{
	/*
	$fp = fopen("../sites/".$source."_run.txt", "a");
	fwrite($fp,	$_GET["system"]."\t".date('d.m.Y')."\n");
	fclose($fp);
	*/

	if ($sides[$_GET["system"]][2] == 4)
	{
		$t_dir = explode("/", $sides[$_GET["system"]][0]);
		$t_dir[count($t_dir) - 1] = null;
		$t_dir = implode("/", $t_dir);

		$t_query = implode('', file($sides[$_GET["system"]][0]));
		$t_query = explode('', $t_query);
		$t_query[0] = null;

		$new = 0;
		$old = 0;

		foreach ($t_query as $row)
		{
			if ($row)
			{
				$titel = explode('<', $row);
				$titel = trim($titel[0]);

				$pub = explode('', $row);
				$dls = $pub[7];
				$autor = explode('<', $pub[2]);
				$autor = trim($autor[0]);
				$year = explode('<', $pub[3]);
				$year = trim($year[0]);
				$pub = explode('<', $pub[1]);
				$pub = trim($pub[0]);

				$info = array();
				if ($pub && $pub != '*')
				{
					$info[] = $pub;
				}
				if ($autor && $autor != '*')
				{
					$info[] = $autor;
				}
				if ($year && $year != '*')
				{
					$info[] = $year;
				}

				$titel = $titel." (".implode(') (', $info).")";

				$dls = explode('', $utlt[0]);
						$utlt = $utlt[1];

						$ext = explode('.', $url);
						$ext = $ext[count($ext) - 1];

						if (!$r_query[$url])
						{
							$found[] = array($url, $titel." (".$utlt.").".$ext);
							$new++;
						}
						else
						{
							$old++;
						}
					}
				}
			}
		}
		print "new: ".$new.", old: ".$old."\n";
	}
	else
	{
		if ($sides[$_GET["system"]][2] == 1 || $sides[$_GET["system"]][2] == 3)
		{
			print "\nload ".$_GET["system"]." ".$sides[$_GET["system"]][0]."\n";
			$t_query = get_data($sides[$_GET["system"]][0]);
			$t_query = explode('
  • Titre', $t_query); $t_query = explode('', $t_query[1]); $t_query = explode('', $query); $query = explode('', $query); $query = explode('', $b_query); $title = explode('

    ', $title[1]); $title = strip_tags(str_replace("\r\n", "", $title[0])); } elseif($sides[$_GET["system"]][2] == 3) { $title = explode('

    ', $b_query); $title = explode('

    ', $title[1]); $title = $title[0]; } else { $title = explode('

    ', $b_query); $title = explode('

    ', $title[1]); $title = $title[0]; } $info = array(); foreach ($searchs[$sides[$_GET["system"]][2]] as $search) { $value = explode($search.' ', $b_query); $value = explode('', $value[1]); if ($value[0] && $value[0] != 'Inconnu' && $value[0] != 'Inconnue') { $info[]=$value[0]; } } if ($info) { $title = $title." (".implode(") (", $info).")"; } $title = strtr(html_entity_decode($title), $GLOBALS['normalize_chars']); /* if ($sides[$_GET["system"]][2] == 1) { $c_query = explode('