Change <? to <?php and add some formatting
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user