Change <? to <?php and add some formatting

This commit is contained in:
2016-11-17 22:16:26 +01:00
parent 2d5ba7fb8d
commit fb71f8c112
27 changed files with 270 additions and 296 deletions

View File

@@ -1,4 +1,4 @@
<?
<?php
$url = $_POST['newLink'];
if($url == '' || !isset($_POST['newLink']))
header('Location: index.php');
@@ -18,7 +18,7 @@ header('Location: index.php');
$(document).ready(function(){
$('.choose').click(function(){
var id = $(this).attr('id');
var url = "<?=$url?>";
var url = "<?php echo $url; ?>";
var name = 'test';
$.post('addSiteXML.php', {number: id, url: url, name: name}, function(data){
document.location.href="index.php"
@@ -30,7 +30,7 @@ $('.choose').click(function(){
</head>
<body>
<?
<?php
echo 'URL : '.$url.'<br/>';
require('blogs_last_post.php');
$opts = array(CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_TIMEOUT => 10);