2016-11-17 22:16:26 +01:00
|
|
|
<?php
|
2010-09-14 23:38:29 +02:00
|
|
|
$url = $_POST['newLink'];
|
|
|
|
if($url == '' || !isset($_POST['newLink']))
|
|
|
|
header('Location: index.php');
|
|
|
|
?>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
|
|
<link rel="SHORTCUT ICON" href="../favicon.ico"/>
|
|
|
|
<link rel="stylesheet" type="text/css" href="css/main.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="css/jquery.fancybox-1.3.0.css">
|
|
|
|
<script type="text/javascript" src="js/jquery-1.3.1.min.js"></script>
|
|
|
|
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
|
|
|
|
|
|
|
|
<title>Ma Page d'accueil</title>
|
|
|
|
<style>img{max-width:100px;max-height:100px;padding:5px;} img:hover{border:5px solid #00AAFF;padding:0;}</style>
|
|
|
|
<script>
|
|
|
|
$(document).ready(function(){
|
|
|
|
$('.choose').click(function(){
|
|
|
|
var id = $(this).attr('id');
|
2016-11-17 22:16:26 +01:00
|
|
|
var url = "<?php echo $url; ?>";
|
2010-09-14 23:38:29 +02:00
|
|
|
var name = 'test';
|
|
|
|
$.post('addSiteXML.php', {number: id, url: url, name: name}, function(data){
|
|
|
|
document.location.href="index.php"
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2016-11-17 22:16:26 +01:00
|
|
|
<?php
|
2010-09-14 23:38:29 +02:00
|
|
|
echo 'URL : '.$url.'<br/>';
|
|
|
|
require('blogs_last_post.php');
|
|
|
|
$opts = array(CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_TIMEOUT => 10);
|
|
|
|
$blogs = new Blogs_last_post();
|
|
|
|
$blogs->addSession($url, $opts);
|
|
|
|
$result = $blogs->exec();
|
|
|
|
echo $blogs->getAllImagesToChoose($result);
|
|
|
|
$blogs->clear();
|