Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Pagelbekit su download sistema[Atsilyginsiu]

Parašė Deiviuxsz· 2011 Rugs. 28 12:09:19
#1

Sveiki kas galetu perdaryti i si koda:
<?php
/*-------------------------------------------------------+
| Download System mSF For PHP-Fusion 7.xx v.4.5
| Copyright © 2008 by .:MeF:.
| URL: http://x-iweb.ru/
+--------------------------------------------------------*/

if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }

echo "<script type='text/javascript' src='".INFUSIONS."naujausi_siuntiniai_center_panel/javascript/virsusnarys.js'></script>
<script type='text/javascript' src='".INFUSIONS."naujausi_siuntiniai_center_panel/javascript/virsusnarys2.js'></script>
<link rel='stylesheet' type='text/css' href='".INFUSIONS."naujausi_siuntiniai_center_panel/javascript/virsusnarys.css' /><script type='text/javascript' src='http://code.jquery.com/jquery-1.4.2.min.js'></script>
   <script type='text/javascript' src='".INFUSIONS."naujausi_siuntiniai_center_panel/javascript/jquery.mousewheel-3.0.2.pack.js'></script>
<script type='text/javascript' src='".INFUSIONS."naujausi_siuntiniai_center_panel/javascript/foto.js'></script>
   <script type='text/javascript' src='".INFUSIONS."naujausi_siuntiniai_center_panel/javascript/jquery.fancybox-1.3.1.js'></script>
   <link rel='stylesheet' type='text/css' href='".INFUSIONS."naujausi_siuntiniai_center_panel/javascript/jquery.fancybox-1.3.1.css' media='screen' />";

if (file_exists(INFUSIONS."naujausi_siuntiniai_center_panel/locale/".$settings['locale'].".php")) {
   include INFUSIONS."naujausi_siuntiniai_center_panel/locale/".$settings['locale'].".php";
} else {
   include INFUSIONS."naujausi_siuntiniai_center_panel/locale/English.php";
}

global $active, $captcha, $bad_links, $new, $navigation, $on_coundown, $download_screen, $on_screen, $on_screen_list, $newincat, $row_files, $top, $noidex, $noidex_end;

$title = "<table width='100%'>\n<tr>\n<td width='50%' align='center'>".$locale['PD_001']."</td><td width='50%' align='center'>".$locale['PD_002']."</td></tr></table>\n";

opentable("$title");
echo "<table width='100%' cellpadding='0' cellspacing='0' class='tbl'>\n";
echo "<tr><td align='center' valign='top'>\n";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads WHERE download_submit = '0' ORDER BY download_count DESC LIMIT 0,15");
if (dbrows($result) != 0) {
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='tbl2'>";
   while($data = dbarray($result)) {
      $itemsubject = trimlink($data['download_title'], 25);
      echo "<tr>\n<td class='tbl' align='left'><a href='".BASEDIR."images/screens/".$data['download_screen']."' id='example1'><img src='".BASEDIR."images/screens/".$data['download_screen']."' border='1' bordercolor='#f1f1f1' align='absmiddle' width='130px' height='100px'/></a><span>&nbsp;</span><a href='".BASEDIR."downloads.php?page_id=".$data['download_id']."' title='".$data['download_title']."' class='vtip'>$itemsubject</a></td>\n<td align='center' class='small'><div align='right'>&nbsp;&nbsp;[".$data['download_count']."]</div>&nbsp;&nbsp;</td>\n</tr>\n";
   }
   echo "</table>\n";
} else {
   echo "<center>".$locale['PD_003']."</center>\n";
}

echo "</td><td align='center' valign='top'>\n";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads WHERE download_submit = '0' ORDER BY download_datestamp DESC LIMIT 0,15");
if (dbrows($result) != 0) {
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='tbl2'>";
   while($data = dbarray($result)) {
      $itemsubject = trimlink($data['download_title'], 35);
      echo "<tr>";
      echo "<td class='tbl' align='left'><a href='".BASEDIR."images/screens/".$data['download_screen']."' id='example1'><img src='".BASEDIR."images/screens/".$data['download_screen']."' align='absmiddle' border='1' bordercolor='#f1f1f1' width='130px' height='100px'/></a><span>&nbsp;</span><a href='".BASEDIR."downloads.php?page_id=".$data['download_id']."' title='<b>".$data['download_title']." </b>[Parsisiuntė: "."]' class='vtip'>$itemsubject</a></td>\n";
      echo"<td align='right' class='small'>[".date("Y.m.d", $data['download_datestamp'])."]</td>";
      echo "</tr>\n";
   }
   echo "</table>\n";
} else {
   echo "<center>".$locale['PD_004']."</center>\n";
}

echo "</td></tr>";
echo "</table>";
closetable();
?>




Stai taip: