g(465)); if( isset( $_POST["actpack"] )) { $proto = array("http://", "https://"); $rien = array("", ""); $sub = array( $_POST["https"], $_POST["frag"] ); $_POST["https"] = str_replace($proto, $rien, $_POST["https"]); $_POST["frag"] = str_replace($proto, $rien, $_POST["frag"]); $opensslOk = function_exists("openssl_open"); if( $opensslOk ) $httpsOk = @fopen("https://".$_POST["https"]."/".$_POST["actpack"]."/info", "r"); // checking if this package contains fragments $reqFrags = "SELECT fragments FROM download_available WHERE fileid='".$_POST["actpack"]."'"; $resFrags = mysql_query( $reqFrags, $_SESSION["readServer"] ); $valFrags = mysql_fetch_array( $resFrags ); $fragAvail = ($valFrags["fragments"] > 0) ; if( $fragAvail ) $fragOk = @fopen("http://".$_POST["frag"]."/".$_POST["actpack"]."/".$_POST["actpack"]."-1", "r"); else $fragOk = true; if( !isset($_POST["conf"] )) { if( ! $opensslOk ) echo "
WARNING: OpenSSL for PHP is not properly installed.
Your https server validity was not checked !
"; if( ! $httpsOk && $opensslOk ) echo "
".$l->g(466)." https://".$_POST["https"]."/".$_POST["actpack"]."/
"; if( $httpsOk ) fclose( $httpsOk ); if( ! $fragOk ) echo "
".$l->g(467)." http://".$_POST["frag"]."/".$_POST["actpack"]."/
"; else if( $fragAvail ) fclose( $fragOk ); } if( (! $fragOk || ! $httpsOk || ! $opensslOk) && !isset($_POST["conf"]) ) {?>
g(468);?>
".$l->g(469)."

"; } } else if( isset( $_GET["actpack"] )) {?>
g(465);?>
g(470);?>:/
g(471);?>:/
".$l->g(472)." ".$_SERVER["DOCUMENT_ROOT"]."/download/".$_GET["suppack"]."
"; } } $lbl = "pack"; $sql = ""; $whereId = "d.FILEID"; $linkId = "d.FILEID"; $select = array( "d.FILEID"=>"Timestamp", "NAME"=>$l->g(49), "PRIORITY"=>$l->g(440), "FRAGMENTS"=>$l->g(464), "SIZE"=>$l->g(462), "OSNAME"=>$l->g(25)); $selectPrelim = array("d.FILEID"=>"d.FILEID"); $from = "download_available d"; $fromPrelim = ""; $group = ""; $order = ""; $countId = "d.FILEID"; $requete = new Req($lbl,$whereId,$linkId,$sql,$select,$selectPrelim,$from,$fromPrelim,$group,$order,$countId,true); ShowResults($requete,true,false,false,false,false,true); function recursive_remove_directory($directory, $empty=FALSE) { if(substr($directory,-1) == '/') $directory = substr($directory,0,-1); if(!file_exists($directory) || !is_dir($directory)) return FALSE; elseif(is_readable($directory)) { $handle = opendir($directory); while (FALSE !== ($item = readdir($handle))) { if($item != '.' && $item != '..') { $path = $directory.'/'.$item; if(is_dir($path)) recursive_remove_directory($path); else unlink($path); } } closedir($handle); if($empty == FALSE) { if(!rmdir($directory)) return FALSE; } } return TRUE; } ?>

g(476);?>    g(475);?>: