[DLP] Error 403 I don't know what to do, i'm a newbie

All support enquiries for other DaddyScripts' scripts go in here...

[DLP] Error 403 I don't know what to do, i'm a newbie

Postby TheLordGark » Tue Dec 16, 2014 8:27 pm

Hi, well, as the title says, apparently I have that error, I have this script and I wanted to customize, well, when modifying their appearance, wanted to try it, and when it did, the error 403 appears, I have hosted on a free host to try first, was hosted in Hostinger.


I do not know if modified or damaged something in the config.php file or index.php

Please I need your help.

The test site where I have the error is this: [url] http://llgvipaste.zz.mu/ [/ url]

[b] Other questions [/ b]

Where are generated IDs that contain links to protect saved

Much is being PREMIUM and what payment methods are available?
TheLordGark
Standard Member
 
Posts: 10
Joined: Thu Nov 20, 2014 12:16 am

Re: [DLP] Error 403 I don't know what to do, i'm a newbie

Postby SamEA » Thu Dec 18, 2014 8:16 pm

Your site seems to load fine on my end with a customised theme applied to it. I am assuming your issue has been resolved?

With regards to the IDs, they are stored in ./files.

What do you mean by much is being premium? For information about Premium, please go to: http://www.daddyscripts.com/premium.php

Thanks,
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: [DLP] Error 403 I don't know what to do, i'm a newbie

Postby TheLordGark » Thu Dec 18, 2014 8:31 pm

Pls, put more than 1 link in the textarea....i think is the hosting, but can you try adding more than 1 link to see that the problem isn't already solved?

And sorry 4 my english
TheLordGark
Standard Member
 
Posts: 10
Joined: Thu Nov 20, 2014 12:16 am

Re: [DLP] Error 403 I don't know what to do, i'm a newbie

Postby SamEA » Sun Dec 21, 2014 1:06 pm

Your "Create a Protected Link" button doesn't seem to link back to index.php. Having a look at your HTML code, I found this:

Code: Select all
<form action="" method="POST" name="newsentry">


The action attribute should consist of the link to your index.php file.

Fix it by replacing the above with this:
Code: Select all
<form action="index.php" method="POST" name="newsentry">


Let me know if this resolves your issue.

Thanks,
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: [DLP] Error 403 I don't know what to do, i'm a newbie

Postby TheLordGark » Sun Dec 21, 2014 4:10 pm

Hello, when i just editing the index.php file i see this:

Image
TheLordGark
Standard Member
 
Posts: 10
Joined: Thu Nov 20, 2014 12:16 am

Re: [DLP] Error 403 I don't know what to do, i'm a newbie

Postby TheLordGark » Sun Dec 21, 2014 4:13 pm

Sorry, i'm soooo sorry for doing double-post,but i don't know how i can edit the last message that i just recently post,well,i just wanna tell that the problem isn't already solved.


Cuz the button to edit the post it doesn't appear:

Image
TheLordGark
Standard Member
 
Posts: 10
Joined: Thu Nov 20, 2014 12:16 am

Re: [DLP] Error 403 I don't know what to do, i'm a newbie

Postby SamEA » Mon Dec 22, 2014 6:11 pm

Not a problem, the forum has disallowed post modifications after a certain amount of time has passed.

Simply change <?=$PHP_SELF?> to index.php and let me know if that works.

Thanks,
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: [DLP] Error 403 I don't know what to do, i'm a newbie

Postby TheLordGark » Mon Dec 22, 2014 10:44 pm

No, still remains giving me the same error.
TheLordGark
Standard Member
 
Posts: 10
Joined: Thu Nov 20, 2014 12:16 am

Re: [DLP] Error 403 I don't know what to do, i'm a newbie

Postby SamEA » Fri Dec 26, 2014 2:26 am

Post your index.php file by copying and pasting all code, placing them in CODE tags i.e [ code ] your code [ /code ], but without the spaces in between the opening and closing brackets.
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: [DLP] Error 403 I don't know what to do, i'm a newbie

Postby TheLordGark » Fri Dec 26, 2014 8:09 pm

Code: Select all
<?php
///////////////////////////////////////////////////////////////////////////
//  Product: Daddy's Link Protector               
//  Version: 1.X                       
//                        
// by DaddyScripts.com                  
//                               
///////////////////////////////////////////////////////////////////////////

include ('header.php');
if($_POST['submit'] =="") {
} else {
$title = $_POST['title'];
$postedinfo = $_POST['information'];
$postedtitle = $_POST['title'];
$postedtitle = str_replace("'",'',"$postedtitle");
$postedtitle = str_replace("&",'',"$postedtitle");
$postedtitle = str_replace("|",'%20',"$postedtitle");
$postedtitle = stripslashes("$postedtitle");
$radiotop20 = $_POST['R1'];
$radiopass = $_POST['R2'];
$userip = $_SERVER['REMOTE_ADDR'];
$todaydate = getdate();
if($postedinfo=="" or $postedtitle =="") {
   echo "<div class=\"error\"><img src=\"./img/error.png\">Please fill in all the fields below:</div>";
} else {
   $fancyurl= rand(0,999) .$title;
   $rand2=("$fancyurl");
   $filename = "./files/".$rand2.".dlp";
if (file_exists($filename)) {
   die("An unusual error occured. Please navigate BACK using your browser and re-submit your links again.");
} else {
   $filelist = fopen("./files/".$rand2.".dlp","w");
   $fileconfig = fopen("./config/".$rand2.".dlp","w");

if($radiopass == "V3") {
   $radiopass = "Yes";
} else {
   $radiopass = "No";
}
   $time = time();
   fwrite($filelist, $_POST['information']."\n");
   fwrite($fileconfig, $time. "|" .$radiopass ."|" .md5($_POST['pass']) ."|" .$userip ."|0");
   $me=$shorturl;
   if ($me==true)
        $short= "";
   else
        $short= "index.php?ID=";

?>
<div class="success"><img src="./img/success.png">Your new URL is <? echo $scripturl .$short.$rand2;?></div>
<?
}
}
}
if($_GET['ID']=="") {
if (isset($_POST['submit'])){
}else{
?>
<center><div class="notice"><?php echo $sitetitle;?> is a free service, that allows you to protect your link(s) and prevents any of your links</div></center>
<?php
}
?>
<form action="index.php" method="POST" name="newsentry"><fieldset>
<p align="center">
<b>Title:</b>
<input type="title" name="title" size="20">
</p>
<p align="center">
<b>Links</b><br>
<TEXTAREA NAME="information" COLS="40" ROWS="5"></TEXTAREA><br>
<div id="email">
      <p align="center"><label><b>Password</b><br>
      </label>
      <input name="pass" type="password" size="20" />
    </div>
<p align="center">
<BR>Password Protected Links?* Yes <input onclick="javascript: $('#email').show('slow');" type="radio" name="R2" value="V3" />  No
<input onclick="javascript: $('#email').hide('slow');" type="radio" name="R2" value="V4" checked /><br>
<br>
<p align="center">
<INPUT TYPE="submit" NAME="submit" VALUE="Create Protected Links!"><BR>
</p>
</fieldset>
<div class="notaviso">If a password isn't inputted, a captcha will be displayed before showing the
links to prevent the links from being spidered</div><BR>
</p>
<?
} else {
?>
<?
$IDFile = "./files/".$_GET["ID"].".dlp";
if (file_exists($IDFile)) {
$fop =  fopen("./config/".$_GET["ID"].".dlp", "r");
$content = fread($fop, '999');
fclose($fop);
$content = explode("|", $content);
if( isset($_POST['Submit0'])) {
if (in_array(md5($_POST['Pass1']), $content)) {
$passplus = "allow";
}
}
if ($content[1] == "Yes" && $passplus == "") {
if( isset($_POST['Submit0'])) {
?>
<div class="error"><img src="./img/error.png">You have entered an incorrect password. Please make sure you are authorized to view these links and try again later.</div>
<?
}else{
}
?>
</FORM><p align="center">Password Protected Link(s):<BR>
   &nbsp;</p>
<form method="POST" action="<?php echo $_SERVER['php_SELF'];?>">
   <p align="center"><input type="password" name="Pass1" size="20"></p>
   <p align="center"><input type="submit" value="Submit" name="Submit0"></p>
</form>
<p align="center"><BR><BR>
   </p>
<?
} elseif ($content[1] == "No") {
?>

<?
if( isset($_POST['submit1']) && $_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'] ) || isset($_SESSION['bypass']) && $_SESSION['bypass'] == md5("hhjjww2a")) {
$_SESSION['bypass'] = md5("hhjjww2a");
      // Insert you code for processing the form here, e.g emailing the submission, entering it into a database.
if (isset($_SESSION['views']) && $_SESSION['views'] == $_GET['ID']){
}else{
$fileconfig = fopen("./config/".$_GET['ID'].".dlp","w");
fwrite($fileconfig, $content[0]. "|" .$content[1] ."|" .$content[2] ."|" .$content[3] ."|" .($content[4] + 1));
fclose($fileconfig);
$_SESSION['views'] = $_GET['ID'];
$views = $content[4] + 1;
}
?>
<center>
<p>Hidden Links:<BR>
   <?php
$fop =  fopen('./files/'.$_GET['ID'].'.dlp', 'r');
$links = fread($fop, filesize('./files/'.$_GET['ID'].'.dlp'));
fclose($fop);
$links = explode("\n", $links);
$arrayNo = count($links);
$i = 0;
while ($links[$arrayNo] <> $links[$i]) {
?>
<p><a href="<?php echo $links[$i];?>"><?php echo $links[$i];?></a></p>
<?php
$i++;
}
?>
</center></p>
<?php
if (isset($views)){
?>
<p align="center">Views: <?php echo $views;?></p>
<?php
}else{
?>
<p align="center">Views: <?php echo $content[4];?></p>
<?
}
      unset($_SESSION['security_code']);
   } else {
if( isset($_POST['submit1'])) {
      // Insert your code for showing an error message here
   echo "<div class=\"error\"><img src=\"./img/error.png\">Sorry, you have provided an invalid security code</div>";
   }
?>
<form method="POST" action="<?php echo $_SERVER['php_SELF'];?>">
      <p align="center"><font face="Arial">Captcha Check:</font></p>
      <p align="left"><font face="Arial">*If the uploader has not chosen to
      password-protected their links, then we include a captcha check to avoid
      the links from being indexed by spiders.</font></p>
      <p align="center">
      <img src="CaptchaSecurityImages.php?width=100&height=40&characters=5" /><br />
      <label for="security_code">Security Code: </label><input id="security_code" name="security_code" type="text" /><br />
      <input type="submit" name="submit1" value="Submit" />
</p>
</form>
<?
}
} elseif ($passplus == "allow") {
if (isset($_SESSION['views']) && $_SESSION['views'] == $_GET['ID']){
}else{
$fileconfig = fopen("./config/".$_GET['ID'].".dlp","w");
fwrite($fileconfig, $content[0]. "|" .$content[1] ."|" .$content[2] ."|" .$content[3] ."|" .($content[4] + 1));
fclose($fileconfig);
$_SESSION['views'] = $_GET['ID'];
$views = $content[4] + 1;
}
?>
<center>
<p>Hidden Links:<BR>
   <?php
$fop =  fopen('./files/'.$_GET['ID'].'.dlp', 'r');
$links = fread($fop, filesize('./files/'.$_GET['ID'].'.dlp'));
fclose($fop);
$links = explode("\n", $links);
$arrayNo = count($links);
$i = 0;
while ($links[$arrayNo] <> $links[$i]) {
?>
<p><a href="<?php echo $links[$i];?>"><?php echo $links[$i];?></a></p>
<?php
$i++;
}
?>
</center></p>
<?php
if (isset($views)){
?>
<p align="center">Views: <?php echo $views;?></p>
<?php
}else{
?>
<p align="center">Views: <?php echo $content[4];?></p>
<?
}
}
} else {
echo "<div class=\"error\"><img src=\"./img/error.png\">The ID was not found, please double check your ID. However, the ID may have been deleted as per request from the uploader.</div>";
?>

   
<?
}
}
include ('footer.php');
?>
TheLordGark
Standard Member
 
Posts: 10
Joined: Thu Nov 20, 2014 12:16 am

Next

Return to Other DS Scripts!

Who is online

Users browsing this forum: No registered users and 2 guests

cron