<?php/*******************************************************************************
* Title: PHP Link Manager
* Version: 1 @ June 18, 2010
* Author: pcnano
* Website: http://havadaran-perspolis.com/
* Persian translator: هواداران متعصب پرسپولیس
* Persian support website:http://havadaran-perspolis.com/
* This Script Downloaded in www.havadaran-perspolis.com
********************************************************************************
* COPYRIGHT NOTICE
* Copyright 2004-2009 Klemen Stirn. All Rights Reserved.
*
* This script may be used and modified free of charge by anyone
* AS LONG AS COPYRIGHT NOTICES AND ALL THE COMMENTS REMAIN INTACT.
* By using this code you agree to indemnify Klemen Stirn from any
* liability that might arise from it's use.
*
* Selling the code for this program, in part or full, without prior
* written consent is expressly forbidden. Using this code, in part or full,
* to create competing scripts or products is expressly forbidden.
*
* Obtain permission before redistributing this software over the Internet
* or in any other medium. In all cases copyright and header must remain
* intact. This Copyright is in full effect in any country that has
* International Trade Agreements with the United States of America or
* with the European Union.
*
* Removing any of the copyright notices without purchasing a license
* is illegal! To remove PHPJunkyard copyright notice you must purchase a
* license for this script. For more information on how to obtain a license
* please visit the site below:
* http://www.phpjunkyard.com/copyright-removal.php
*******************************************************************************/
define('IN_SCRIPT',1);
require('settings.php');
include_once('gettext.php');
require_once('header.php');
if ($settings['show_form'])
{
?>
<div id="mainBG"><div id="mainBGmin">
<div class="dash mdash"><div class="logoContinue">
<div class="roundRight"></div>
<div class="roundLeft"></div>
<ul class="raw left">
<li><a href="http://havadaran-perspolis.com">صفحه سایت</a></li>
</ul>
<ul class="raw right">
<li><a href="about">درباره</a></li>
<li><a href="contact">تماس</a></li>
<li><a href="links.php">صفحه اصلی</a></li>
</ul>
</div></div>
<div id="hdr">
<a href="http://havadaran-perspolis.com"> </a>
</div>
</div></div>
<div id="ctn">
<div class="side">
<a href="#" class="signUp" id="lnkFeatures" onclick="slideToggle(document.getElementById('lnkFeatures')); return slideToggle(document.getElementById('divFeatures'));"></a>
<div class="item rnd itemIn about">
<h2><span class="toggle">توضیحات</span></h2>
<div class="itemcontent" >
<div class="jus">
به پرتال تبادل لينك با ما خوش آمديد .. همان طور كه بايد بدانيد داشتن لينك در صفحاتي با پيج رنك بالا تاثير بسيار زيادي در رتبه و سئوي شما در گوگل خواهد شد ، اين وب سايت با تمامي وب سايت ها و وبلاگ ها با هر پيج رنك و رتبه اي ، تبادل لينك ميكند ،، اين سيستم كاملا اتوماتيك بوده و شما به راحتي و در كمترين زمان ميتوانيد با ما تبادل لينك داشته باشيد و لينك تون رو ثبت و مشاهده كنيد .. .. براي تبادل لينك با ما همين الان ميتوانيد اقدام كنيد و لينك خود را ثبت كنيد ..
</div>
</div>
<div style="clear:both"></div>
</div>
<div class="item rnd itemIn about">
<h2><span class="toggle">اطلاعیه</span></h2>
<div class="itemcontent" >
<div class="jus" style="color:#ff4f00;">
ثبت هرگونه سايت هايي كه برخلاف قوانين جمهوري اسلامي ايران مي باشند و لينك هاي تبليغاتي در اين سامانه ممنوع مي باشد و در صورت ثبت اين گونه لينك ها در اسرع وقت پاك خواهند شد .. با تشكر ..
</div>
</div>
<div style="clear:both"></div>
</div>
<div class="item rnd itemIn about">
<h2>
<span class="toggle">لینک های برتر </span>
</h2>
<div class="itemcontent" >
<div class="jus">
<b>»</b> <a href="http://moisrex.rozblog.com" target="_blank">کدستان </a><br>
<b>»</b> <a href=" " target="_blank">جای لینک شما !</a><br>
<b>»</b> <a href=" " target="_blank">جای لینک شما !</a>
</div>
</div>
<div style="clear:both"></div>
</div>
<div class="item rnd itemIn about">
<h2>
<span class="toggle">آمار و اطلاعات</span>
</h2>
<div class="itemcontent" >
<div class="jus">
<center> <!-- Begin WebGozar.com Counter code -->
<script type="text/javascript" language="javascript" src="http://www.webgozar.ir/c.aspx?Code=2997615&t=counter" ></script>
<noscript><a href="http://www.webgozar.com/counter/stats.aspx?code=2997615" target="_blank">آمار</a></noscript>
<!-- End WebGozar.com Counter code -->
</center>
</div>
</div>
<div style="clear:both"></div>
</div>
<div class="item rnd itemIn about">
<h2>
<span class="toggle">تبليغات</span>
</h2>
<div class="itemcontent" >
<div class="jus">
<!-- ZarADS system code start -->
<script type='text/javascript' src='http://www.zarads.com/_js_engine.php?t=gsm&b=2&u=5161&c=0&text=1'></script>
<!-- end ZarADS system code -->
</div>
</div>
<div style="clear:both"></div>
</div>
</div>
<div id="sidedContent" class="ribbon"><div class="field">
<div class="item rnd itemIn facilities">
<h2>
<span class="toggle">تبادل لینک هوشمند</span>
</h2>
<div class="itemcontent" >
<ul class="raw facilities">
<?php
}
$lines = file($settings['linkfile']);
/* Handle pages */
if ($settings['allow_pages'])
{
/* Page number, default 1st page */
$page=intval($_REQUEST['page']);
if ($page > 0)
{
$start=($page*$settings['max_per_page'])-$settings['max_per_page'];$end=$start+$settings['max_per_page']-1;
}
else
{
$page=1;$start=0;$end=$settings['max_per_page']-1;
}
/* Total number of links */
$total = count($lines);
if ($total > 0)
{
if ($end > $total) {$end=$total;}
$pages = ceil($total/$settings['max_per_page']);
$page_nav = '';
if ($pages > 1)
{
$page_nav = '<p>';
$prev_page = ($page-1 <= 0) ? 0 : $page-1;
$next_page = ($page+1 > $pages) ? 0 : $page+1;
if ($prev_page)
{
$page_nav .= '<a href="links.php?page=1"><< '.t("First").'</a> | ';
if ($prev_page > 1)
{
$page_nav .= '<a href="links.php?page='.$prev_page.'">< '.t("Prev").'</a> | ';
}
}
for ($i=1; $i<=$pages; $i++)
{
if ($i <= ($page+5) && $i >= ($page-5))
{
if($i == $page) {$page_nav .= ' <b>'.$i.'</b> ';}
else {$page_nav .= ' <a href="links.php?page='.$i.'">'.$i.'</a> ';}
}
}
if ($next_page)
{
if ($next_page < $pages)
{
$page_nav .= ' | <a href="links.php?page='.$next_page.'">'.t("Next").' ></a>';
}
$page_nav .= ' | <a href="links.php?page='.$pages.'">'.t("Last").' >></a>';
}
$page_nav .= '</p>';
echo $page_nav;
}
}
$lines = array_slice($lines,$start,$settings['max_per_page']);
}
$print_featured = 0;
$first = 1;
$i = 0;
foreach ($lines as $thisline)
{
$thisline=trim($thisline);
if (!empty($thisline))
{
$i++;
list($name,$email,$title,$url,$recurl,$description,$featured,$pr)=explode($settings['delimiter'],$thisline);
$show_url = $settings['show_url'] ? ' <span class="linkmanURL">- '.$url.'</span>' : '';
if ($settings['show_pr'] == 1)
{
if (empty($pr)) {$pr=0;}
$pr_code = '<td valign="top" class="linkman" title="Google PageRank: '.$pr.'/10"><img src="img/pr'.$pr.'.gif" width="40" height="5" alt="Google PageRank: '.$pr.'/10" border="0" style="vertical-align: middle;"> </td>';
}
else
{
$pr_code = '';
}
if ($settings['show_thumbshots'])
{
$thumb_code = '<td valign="top" class="linkman"><img src="'.$settings['thumb_url'].rawurlencode($url).'" style="vertical-align: middle;" border="1" width="120" height="90" alt="Thumbnail"> </td>';
}
else
{
$thumb_code = '';
}
if ($featured == 1)
{
if ($print_featured == 0)
{
$print_featured = 1;
$first = 0;
echo '<br><div class="item_wrn2"><b>'.t("Featured links").'</b></div><table border="0" cellspacing="1" cellpadding="1">';
}
$url = ($settings['clean'] != 1) ? $url : 'go.php?url='.rawurlencode($url);
$nofollow = ($settings['use_nofollow']==1) ? 'rel="nofollow"' : '';
echo '
<tr>
'.$thumb_code.'
'.$pr_code.'
<td valign="top" class="linkman"><p class="linkman"><a href="'.$url.'" target="_blank" class="linkman" '.$nofollow.'><b>'.$title.'</b></a>'.$show_url.'<br>'.$description.'<br> </p></td>
</tr>
';
}
else
{
if ($settings['show_thumbshots']!=1)
{
$thumb_code = '';
}
if ($print_featured == 1)
{
$print_featured = 0;
$first = 1;
echo '</table>';
}
if ($first == 1)
{
$first = 0;
echo '<br><div class="item_wrn3"><b>'.t('Reciprocal links').'</b></div><table border="0" cellspacing="1" cellpadding="1">';
}
$url = ($settings['clean'] == 0) ? $url : 'go.php?url='.rawurlencode($url);
$nofollow = $settings['use_nofollow'] ? 'rel="nofollow"' : '';
echo '
<tr>
'.$thumb_code.'
'.$pr_code.'
<td valign="top" class="linkman"><p class="linkman"><a href="'.$url.'" target="_blank" class="linkman" '.$nofollow.'>'.$title.'</a>'.$show_url.'<br>'.$description.'</p></td>
</tr>
';
}
}
}
/* Close the table if at least one link is printed out */
if ($i)
{
echo '</table>';
/* Print bottom page navigation if at least 20 listings on the page */
if ($settings['allow_pages'] && $i > 19)
{
echo $page_nav;
}
}
else
{
echo '<p class="linkman">'.t("No links yet!").'</p>';
}
if ($settings['show_form'])
{
if ($i < $settings['max_links'])
{
?>
</ul>
<a href="#" class="mor" id="lnkFeatures" onclick="slideToggle(document.getElementById('lnkFeatures')); return slideToggle(document.getElementById('divFeatures'));">برای اضافه کردن لینک کلیک کنید ...</a>
<div style="clear:both"> </div>
<div id="divFeatures" style="display:none">
<ul class="raw facilities">
<p class="هواداران متعصب پرسپولیس"><a name="addlink"></a> <br /><b><?php echo t("هواداران متعصب پرسپولیس"); ?></b></p>
<p><b>» <?php echo t(" www.havadaran-perspolis.com"); ?></b></p>
<table border="0">
<tr>
<td><?php echo t("www.havadaran-perspolis.com"); ?>:</td>
<td><a href="<?php echo $settings['www.havadaran-perspolis.com']; ?>" target="هواداران متعصب پرسپولیس"><?php echo $settings['www.havadaran-perspolis.com']; ?></a></td>
</tr>
<tr>
<td><?php echo t(" هواداران متعصب پرسپولیس"); ?></td>
<td><?php echo htmlspecialchars($settings['هواداران متعصب پرسپولیس']); ?></td>
</tr>
<tr>
<td><?php echo t("خبرگزاری هواداران پرسپولیس "); ?></td>
<td><?php echo htmlspecialchars($settings['خبرگزاری هواداران پرسپولیس']); ?></td>
</tr>
</table>
<p><textarea rows="4" cols="60" onfocus="this.select()" dir="بعد" ><a href="<?php echo $settings['site_url']; ?>"><?php echo htmlspecialchars($settings['site_title']); ?></a> - <?php echo htmlspecialchars($settings['site_desc']); ?></textarea></p>
<p><b>» <?php echo t("Step 2: Submit your link"); ?></b></p>
<p><?php echo t("All fields are required. Please finish <b>Step 1</b> before submitting this form."); ?>
<?php
if ($settings['man_approval'])
{
echo ' '.t('New links will be approved manually.');
}
?></p>
<form method="post" action="addlink.php">
<table border="0">
<tr>
<td><b><?php echo t("Your name"); ?>:</b></td>
<td><input type="text" name="name" size="40" maxlength="50" /></td>
</tr>
<tr>
<td><b><?php echo t("E-mail"); ?>:</b></td>
<td><input type="text" name="email" size="40" maxlength="50" dir="ltr" /></td>
</tr>
<tr>
<td><b><?php echo t("Website title"); ?>:</b></td>
<td><input type="text" name="title" size="40" maxlength="50" /></td>
</tr>
<tr>
<td><b><?php echo t("Website URL"); ?>:</b></td>
<td><input type="text" name="url" maxlength="255" value="http://" size="40" dir="ltr" /></td>
</tr>
<tr>
<td><b><?php echo t("URL with reciprocal link"); ?>:</b></td>
<td><input type="text" name="recurl" maxlength="255" value="http://" size="40" dir="ltr" /></td>
</tr>
</table>
<p><b><?php echo t("Website description") ?>:</b><br />
<input type="text" name="description" maxlength="200" size="63" /></p>
<p><input type="submit" value="<?php echo t('Add link'); ?>" /></p>
</form>
<?php
} // End if $settings['max_links'] < $i
else
{
?>
<p class="linkman"> <br /><b><?php echo t("Submit your website"); ?></b></p>
<p><i><?php echo t("Unfortunately we are not accepting any new links at the moment."); ?></i></p>
<?php
}
} // End if $settings['show_form']
$link=true;
if (file_exists('linkman_license.php'))
{
include_once('linkman_license.php');
if (@is_array($settings['linkman_license']))
{
$link=false;
}
}
if ($link)
{
}
include_once('footer.txt');
?>
</ul>
<br>
<div style="clear:both;margin-bottom:8px;"> </div>
<div class="item_wrn">
<div class="icon"></div><b>توجه:</b> لطفا ابتدا لینک ما را در سایت خود قرار بدید سپس اقدام به ثبت لینک کنید.<br>
</div>
<div class="item_wrn2">
<div class="icon2"></div><b>مهم:</b> اين سامانه با تمامي وب سايت ها و وبلاگ ها با هر پيج رنك و رتبه اي،تبادل لينك ميكند.<br>
</div>
<div class="item_wrn1">
<div class="icon1"></div><b>اخطار:</b> ثبت هرگونه سايت هايي بر خلاف قوانين جمهوري اسلامي ايران ممنوع مي باشد.
</div>
</div>
</div>
<div style="clear:both"></div>
</div>
</center>
<div class="item rnd itemIn facilities">
<h2><span class="toggle">تبلیغات</span></h2>
<div class="itemcontent" >
<ul class="raw facilities">
<center>
<div align="center" style="padding: 7px;">
<a href="http://my.mihanwebhost.com/aff.php?aff=4064" class="tooltip" title=" " >
<img style="border:0px" src="http://mihanwebhost.com/images/mihanwebhost-468.gif" alt="" width="488" height="65"/></a>
<a href="http://my.mihanwebhost.com/aff.php?aff=4064" class="tooltip" title="" >
<img style="border:0px" src="http://mihanwebhost.com/images/mihan web 2.gif" alt="" width="488" height="65"/></a>
</div>
</center>
</ul>
</div>
<div style="clear:both"></div>
</div>
<div class="bayanHelp">
<span class="bayanPhone"><a href=" " target="_blank" title=" "></a></span>
</div>
</div></div></div>
<div style="clear:both;"></div>
<div id="ftr" class="mftr">
<div class="specialFtr">
<img src="images/event.png?oD8D9" alt="پرواز اندیشه در فضای مجازی" title="پرواز اندیشه در فضای مجازی">
</div>
<a href="http://pcnano.ir" class="pcnano.ir"><img src="images/cleardot.gif" title="Bayan Group" alt="pcnano"></a>
<span>حقوق سایت برای <a href="http://havadaran-perspolis.com/">هواداران متعصب پرسپولیس</a> محفوظ می باشد</span>
</div>
</body>
</html>