Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
General question
09-12-2011, 10:51 PM
Post: #10
RE: General question
lol
/admin/index.php file is as follows:
Code:
<?
require_once('../config/config.php');
require_once('functions.php');
require_once("../include/lite.php");
require_once("../include/functions.php");

require_once("../locale/".$locale);

session_start();
if ($_GET['option']=="logout"){$_SESSION['admin']="";}


if ($_POST['type']=="register") {

if ($_POST['password3']==$admin_password) {

$ch = curl_init();
$postfields = 'name='.urlencode($_POST['name']).'&email='.urlencode($_POST['email']).'&password='.urlencode($_POST['password']).'&language='.urlencode($_POST['language']).'&country='.urlencode($_POST['country'])."&domain=".urlencode($website)."&root=".urlencode($root_url);
curl_setopt($ch, CURLOPT_URL, $kaynak_url.'/register/');
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $postfields);
curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$store = curl_exec($ch);
$error=$store;
if (stripos($store,'success')>0) {deger_ata('$email','"'.$_POST['email'].'"');}


}
else
{
$error="<font color='red'>Incorrect Script Admin Password Please Correct it</font>";
}


}



if ($_POST['type']=="login") {

if ($_POST['password2']==$admin_password) {

$ch = curl_init();
$postfields = 'email='.urlencode($_POST['email']).'&password='.urlencode($_POST['password']).'&domain='.urlencode($website)."&version=".$version."&language=".$_POST['language'];
curl_setopt($ch, CURLOPT_URL, $kaynak_url.'/login/');
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $postfields);
curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$store = curl_exec($ch);
if (strpos($store,'false###')>0)
{
$errr=split("###",$store);
$error=$errr[1];
} else if (strpos($store,'true###')>0)
{
$errr=split("###",$store);
$_SESSION['admin']=$errr[1];

}

else
{
$error="<font color='red'>FreeAdultScript is currently having Connection problems. Please try again shortly.</font>";
}

}

else

{
$error="<font color='red'>Incorrect Script Admin Password!</font>";
}

}




if ($_POST['type']=="changeip") {

if ($_POST['password2']==$admin_password) {

$ch = curl_init();
$postfields = 'email='.urlencode($_POST['email']).'&password='.urlencode($_POST['password']).'&domain='.urlencode($website);
curl_setopt($ch, CURLOPT_URL, $kaynak_url.'/changeip/');
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $postfields);
curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$store = curl_exec($ch);
if (strpos($store,'false###')>0)
{
$errr=split("###",$store);
$error=$errr[1];
} else if (strpos($store,'true###')>0)
{
$errr=split("###",$store);

$error=$errr[1];
}

else
{
$error="<font color='red'>FreeAdultScript is currently having Connection problems. Please try again shortly.</font>";
}

}

else

{
$error="<font color='red'>Incorrect Script Admin Password!</font>";
}

}



if ($_POST['type']=="registerdomain") {

if ($_POST['password2']==$admin_password) {

$ch = curl_init();
$postfields = 'email='.urlencode($_POST['email']).'&password='.urlencode($_POST['password']).'&domain='.urlencode($website).'&language='.urlencode($_POST['language']).'&root='.$root_url;
curl_setopt($ch, CURLOPT_URL, $kaynak_url.'/registerdomain/');
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $postfields);
curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$store = curl_exec($ch);
if (strpos($store,'false###')>0)
{
$errr=split("###",$store);
$error=$errr[1];
} else if (strpos($store,'true###')>0)
{
$errr=split("###",$store);

$error=$errr[1];
if (stripos($store,'success')>0) {deger_ata('$email','"'.$_POST['email'].'"');}
}

else
{
$error="<font color='red'>FreeAdultScript is currently having Connection problems. Please try again shortly.</font>";
}

}

else

{
$error="<font color='red'>Incorrect Script Admin Password!</font>";
}

}





if ($_POST['type']=="changepassword") {

if ($_POST['password2']==$admin_password) {

$ch = curl_init();
$postfields = 'email='.urlencode($_POST['email']).'&password='.urlencode($_POST['password']).'&newpassword='.urlencode($_POST['newpassword']);
curl_setopt($ch, CURLOPT_URL, $kaynak_url.'/changepassword/');
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $postfields);
curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$store = curl_exec($ch);
if (strpos($store,'false###')>0)
{
$errr=split("###",$store);
$error=$errr[1];
} else if (strpos($store,'true###')>0)
{
$errr=split("###",$store);

$error=$errr[1];
}

else
{
$error="<font color='red'>FreeAdultScript is currently having Connection problems. Please try again shortly.</font>";
}

}

else

{
$error="<font color='red'>Incorrect Script Admin Password!</font>";
}

}


if ($_SESSION['admin']) { eval(gzinflate(base64_decode($_SESSION['admin']))); }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>FreeAdultScript Admin</title>
<meta name="keywords" content="" />
<meta name="Gestured" content="" />
<link href="default.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="wrapper">
<!-- start header -->
<div id="header">
    <div id="menu">
        
    </div>
    <div id="logo">
        <h1><a href="<?=$kaynak_url;?>"><span>FreeAdultScript - Admin Panel</span></a></h1>
        <p><?=$kaynak_url;?></p>
    </div>
</div>

<!-- end header -->
    <!-- start page -->
    <div id="page">
        <div id="sidebar1" class="sidebar">
            <ul>
                <? if (function_exists('menu_dok'))  
{
               echo menu_dok();
              
               } else { ?>
                
                
<li><h2><a href="?">LOG IN</a></h2></li>

<? } ?>
                
                
            </ul>
        </div>
        <!-- start content -->
        <div id="content">
            
                <? if (function_exists('icerik_dok'))  
{
               echo icerik_dok();
              
               }
               else
              
               {
              
              
               ?>
              
              
               <? if ($_GET['option']=="register") { ?>
                <div class="post">
                <h1 class="title">Registration</h1>
                <div class="entry"><br />

<?=$error;?><br />

               <table border="1">
<form name="register" method="post" onsubmit="return denetle();">
<tr><td>Name</td><td> <input type="text" name="name" value="<?=$_POST['name'];?>" id="name" /> <input type="hidden" name="type" value="register" />  </td></tr>
<tr><td>E-mail</td><td> <input type="text" name="email" id="email" value="<?=$_POST['email'];?>" />  </td></tr>
<tr><td>FreeAdultScript User Password</td><td> <input type="password" name="password" id="password" /> </td></tr>
<tr><td>Retype FreeAdultScript User Password</td><td> <input type="password" name="password2" id="password2" /> </td></tr>
<tr><td>Script Admin Password</td><td> <input type="password" name="password3" id="password3" /> * script admin password that you created during installation  </td></tr>
<tr><td>Your Website Language</td><td> <input type="text" name="language" id="language" value="<?=$_POST['language'];?>" />  </td></tr>
<tr><td>Your Country</td><td> <input type="text" name="country" id="country" value="<?=$_POST['country'];?>" />  </td></tr>

<tr><td colspan="2"> <input type="submit" value="Register" />  </td></tr>
</form>
</table>
<script language="javascript">
function denetle()
{
if (document.getElementById("name").value=="") {alert("Please enter Your Name!");return false;}
if (document.getElementById("email").value=="") {alert("Please enter Your E-Mail!");return false;}
if (document.getElementById("password").value=="") {alert("Please enter Your FreeAdultScript Password!");return false;}
if (document.getElementById("password2").value=="") {alert("Please Retype Your FreeAdultScript Password!");return false;}
if (document.getElementById("password3").value=="") {alert("Please enter Your Script Admin Password!");return false;}
if (document.getElementById("language").value=="") {alert("Please enter Your Website Language!");return false;}
if (document.getElementById("country").value=="") {alert("Please enter Your Country!");return false;}
if (document.getElementById("password").value!=document.getElementById("password2").value) {alert("FreeAdultScript Passwords Do not same!");return false;}
return true;
}
</script>
            </div>
                </div>  
               <? } else if ($_GET['option']=="changeip") { ?>
              
              
               <div class="post">
                <h1 class="title">Your Hosting/Server Outgoing Ip Change</h1>
                <div class="entry">
<br />
Your Servers ip is : <?=$_SERVER['SERVER_ADDR']; ?>
<br />

<?=$error;?><br />
<table border="1">
<form name="login" method="post" onsubmit="return denetle();">
<tr><td>E-mail</td><td> <input type="text" name="email" id="email" />  <input type="hidden" name="type" value="changeip" /></td></tr>
<tr><td>FreeAdultScript User Password</td><td> <input type="password" name="password" id="password" /> * password that you created when registering at freeadultscript.com </td></tr>
<tr><td>Script Admin Password</td><td> <input type="password" name="password2" id="password2" /> * script admin password that you created during installation  </td></tr>
<tr><td colspan="2"> <input type="submit" value="Change Ip" />  </td></tr>
</form>
</table>
<script language="javascript">
function denetle()
{
if (document.getElementById("email").value=="") {alert("Please enter Your E-Mail!");return false;}
if (document.getElementById("password").value=="") {alert("Please enter Your FreeAdultScript Password!");return false;}
if (document.getElementById("password2").value=="") {alert("Please enter Your Script Admin Password!");return false;}

return true;
}
</script>

<hr />
              
           </div>
                </div>  
                
                
                
                <? } else if ($_GET['option']=="changepassword") { ?>
              
              
               <div class="post">
                <h1 class="title">Change FreeAdultScript Password</h1>
                <div class="entry">
<br />

<?=$error;?><br />
<table border="1">
<form name="login" method="post" onsubmit="return denetle();">
<tr><td>E-mail</td><td> <input type="text" name="email" id="email" />  <input type="hidden" name="type" value="changepassword" /></td></tr>
<tr><td>OLD FreeAdultScript User Password</td><td> <input type="password" name="password" id="password" /> * password that you created when registering at freeadultscript.com </td></tr>
<tr><td>Script Admin Password</td><td> <input type="password" name="password2" id="password2" /> * script admin password that you created during installation  </td></tr>
<tr><th>NEW FreeAdultScript User Password</th><td> <input type="password" name="newpassword" id="newpassword" />  </td></tr>
<tr><th>Retype NEW FreeAdultScript User Password</th><td> <input type="password" name="newpassword2" id="newpassword2" />  </td></tr>
<tr><td colspan="2"> <input type="submit" value="Change Password" />  </td></tr>
</form>
</table>
<script language="javascript">
function denetle()
{
if (document.getElementById("email").value=="") {alert("Please enter Your E-Mail!");return false;}
if (document.getElementById("password").value=="") {alert("Please enter Your OLD FreeAdultScript Password!");return false;}
if (document.getElementById("password2").value=="") {alert("Please enter Your Script Admin Password!");return false;}
if (document.getElementById("newpassword").value=="") {alert("Please enter Your NEW FreeAdultScript Password!");return false;}
if (document.getElementById("newpassword2").value=="") {alert("Please retype Your NEW Script Admin Password!");return false;}
if (document.getElementById("newpassword2").value!=document.getElementById("newpassword").value) {alert("Your NEW password and Confimation pasword are not same. Please retype them again!");return false;}
return true;
}
</script>

<hr />
              
           </div>
                </div>  
                
                
                 <? } else if ($_GET['option']=="registerdomain") { ?>
              
              
               <div class="post">
                <h1 class="title">Domain Registration</h1>
                <div class="entry">
<br />
Your Domain is : <?=$website; ?>
<br />

<?=$error;?><br />
<table border="1">
<form name="login" method="post" onsubmit="return denetle();">
<tr><td>E-mail</td><td> <input type="text" name="email" id="email" />  <input type="hidden" name="type" value="registerdomain" /></td></tr>
<tr><td>FreeAdultScript User Password</td><td> <input type="password" name="password" id="password" /> * password that you created when registering at freeadultscript.com </td></tr>
<tr><td>Script Admin Password</td><td> <input type="password" name="password2" id="password2" /> * script admin password that you created during installation  </td></tr>
<tr><td>WebSite Language</td><td> <input type="text" name="language" id="language" />  </td></tr>
<tr><td colspan="2"> <input type="submit" value="Register Domain" />  </td></tr>
</form>
</table>
<script language="javascript">
function denetle()
{
if (document.getElementById("email").value=="") {alert("Please enter Your E-Mail!");return false;}
if (document.getElementById("password").value=="") {alert("Please enter Your FreeAdultScript Password!");return false;}
if (document.getElementById("password2").value=="") {alert("Please enter Your Script Admin Password!");return false;}
if (document.getElementById("language").value=="") {alert("Please enter Your Language!");return false;}

return true;
}
</script>

<hr />
              
           </div>
                </div>    
              
               <? } else { ?>
               <div class="post">
                <h1 class="title">Log in</h1>
                <div class="entry">
<br />
<?=$error;?><br />
<table border="1">
<form name="login" method="post" onsubmit="return denetle();">
<tr><td>E-mail</td><td> <input type="text" name="email" id="email" />  <input type="hidden" name="type" value="login" /></td></tr>
<tr><td>FreeAdultScript User Password</td><td> <input type="password" name="password" id="password" /> * password that you created when registering at freeadultscript.com </td></tr>
<tr><td>Script Admin Password</td><td> <input type="password" name="password2" id="password2" /> * script admin password that you created during installation  </td></tr>
<tr><td>Language</td><td> <select name='language'><option value="en">English</option><option value="tr">Turkish</option></select> </td></tr>

<tr><td colspan="2"> <input type="submit" value="Log In" />  </td></tr>
</form>
</table>
<script language="javascript">
function denetle()
{
if (document.getElementById("email").value=="") {alert("Please enter Your E-Mail!");return false;}
if (document.getElementById("password").value=="") {alert("Please enter Your FreeAdultScript Password!");return false;}
if (document.getElementById("password2").value=="") {alert("Please enter Your Script Admin Password!");return false;}

return true;
}
</script>

<hr />
                    <h2><a href="?option=register">REGISTER</a></h2>
                    
                
                 If You do not have a user account please Register.  <hr />
                <h2><a target="_blank" href="http://freeadultscript.com?option=forget">FORGOT FreeAdultScript PASSWORD</a></h2>
                    
                
If you forgot your FreeAdultScript Acount Password, please request it be sent to your E-Mail.  <hr />

                    <h2>FORGET SCRIPT ADMIN PASSWORD</h2>
                
If you forgot your Script Admin Password, please see the config file that is located at config/config.php and find $admin_password="?????". <hr />
                    <h2><a href="?option=registerdomain">REGISTER DOMAIN</a></h2>
                    
                 If you already have registered your user and you have a new domain Please register your new domain.  <hr />
                
                    <h2><a href="?option=changeip">CHANGE IP</a></h2>
                    
                
If you have changed your hosting, please change your servers outgoing ip address to log in. </li>
                 <hr />
                    <h2><a href="?option=changepassword">CHANGE PASSWORD</a></h2>
                    
Here You can change your FreeAdultScript Account Password.  <hr />
                    
                    <h2><a target="_blank" href="http://freeadultscript.com?option=contact">CONTACT US</a></h2>
                    
                
Feel free anytime to contact FreeAdultScript.com with any problems or questions.
                <hr />
                    <h2><a target="_blank" href="http://forum.freeadultscript.com">FreeAdultScript FORUM</a></h2>
                    
                
You can also contact with other users or with admin by visiting our forum.
                 <hr />


                </div>
                </div>
              
               <?
              
               }
               }
               ?>
            
            
            
        </div>
        <!-- end content -->
        
        <div style="clear: both;">&nbsp;</div>
    </div>
    <!-- end page -->
</div>
<div id="footer">
    <p class="copyright">&copy;&nbsp;&nbsp;2011 All Rights Reserved &nbsp;&bull;&nbsp; Scripted by <a href="<?=$kaynak_url;?>">Free Adult Script</a>.</p>
</div>
</body>
</html>

have you overwritten any other files?
the only file which needed those popup codes etc is:
/template/YOUR_TEMPLATE/index.php

Custom HTML/CSS/PHP
http://theorderofindividualacceptance.co...p.php?id=1
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
General question - letmejerkdotcom - 09-12-2011, 09:17 AM
RE: General question - Punktured - 09-12-2011, 11:45 AM
RE: General question - Punktured - 09-12-2011, 01:17 PM
RE: General question - letmejerkdotcom - 09-12-2011, 01:30 PM
RE: General question - Punktured - 09-12-2011, 01:34 PM
RE: General question - letmejerkdotcom - 09-12-2011, 10:26 PM
RE: General question - Punktured - 09-12-2011, 10:34 PM
RE: General question - Punktured - 09-12-2011, 10:39 PM
RE: General question - letmejerkdotcom - 09-12-2011, 10:45 PM
RE: General question - Punktured - 09-12-2011 10:51 PM

Forum Jump: