robert
Narys
Tankas
Pranešimai: 1946
Įstojęs: 2006 Gru. 18 16:12:57
Gal kas zino kaip galima butu padaryti stai toki top100.php faila?
http://creative.xz.lt/top100.php
http://tune.lt/top100.php Redagavo
robert 2008 Geg. 8 08:05:49
WantedBoy
Narys
Ekspertas
Pranešimai: 2443
Įstojęs: 2007 Bir. 6 19:06:30
Parashyk i skype uzh pinigus padaryciaugreitieji kreditai
musulmonas
Narys
Spalvotas
Pranešimai: 66
Įstojęs: 2008 Sau. 14 09:01:28
<?php
/*---------------------------------------------------+
| PHP -Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
opentable("Whos-Blazin' Topsites");
if($HTTP_GET_VARS['action'] == "join"){
$result = dbquery("INSERT INTO ".$db_prefix."toplist VALUES('', '".stripinput($HTTP_POST_VARS['webname'])."', '".stripinput($HTTP_POST_VARS['weburl'])."', '".stripinput($HTTP_POST_VARS['yourname'])."', '".stripinput($HTTP_POST_VARS['sitebutton'])."', '".stripinput($HTTP_POST_VARS['youremail'])."', '0', '0')");
$data = dbarray(dbquery("SELECT * FROM ".$db_prefix."toplist WHERE name='".stripinput($HTTP_POST_VARS['webname'])."'"));
echo "Thank you for your interest in our Topsites<br>
Your website has been added to the directory and you can immediently begin using this link:<br><br>";
echo "- <a href='".$settings['siteurl']."in.php?id=".$data['id']."'>".$settings['siteurl']."in.php?id=".$data['id']."</a> (Use this to link to our website)<br>";
echo "<br>And, on the Top 100 page, we will list your site and when users click on the link, it adds to the Outgoing traffic counter.<br><br>";
echo "Click <a href='".FUSION_SELF."'>here</a> to continue";
closetable();
} elseif($_GET['action'] == "delete"){
$result = dbquery("SELECT * FROM ".$db_prefix."toplist WHERE id='".$_GET['id']."'");
if(dbrows($result) != 0){
$deltop = dbquery("DELETE FROM ".$db_prefix."toplist WHERE id='".$_GET['id']."'");
fallback(FUSION_SELF);
} else {
fallback(FUSION_SELF);
}
} else {
echo "Welcome to Whos-Blazin' Top 100!<br><br>";
$result = dbquery("SELECT * FROM ".$db_prefix."toplist");
if(dbrows($result) != 0){
echo "<table width='500' cellpadding='1' cellspacing='1' bgcolor='#000000'>";
echo "<tr><td class='tbl2'><b>Website</b></td><td class='tbl2'><b>Owner</b></td><td class='tbl2'><b>Site Button</b></td><td class='tbl2'><b>In</b></td><td class='tbl2'><b>Out</b></td><td class='tbl2'><b>Options</b></td></tr>";
while($data = dbarray($result)){
echo "<tr><td class='tbl2'><a href='out.php?id=".$data['id']."'>".$data['name']."</a></td>";
echo "<td class='tbl1'><a href='mailto:".$data['email']."'>".$data['owner']."</a></td>";
echo "<td class='tbl2'><img src='$result['sitebutton']."'></td>";
echo "<td class='tbl1'>".$data['incnt']."</td><td class='tbl2'>".$data['outcnt']."</td>";
if(iADMIN){
echo "<td class='tbl1'><a href='".FUSION_SELF."?action=delete&id=".$data['id']."'>Delete</a></td>";
}
echo "</tr>";
}
echo "</table>";
} else {
echo "There are currently no websites on the Toplist, please show your support and register below!";
}
closetable();
echo "<br>";
opentable("Join the topsites list");
echo "<table><form name='joincgn' action='".FUSION_SELF."?action=join' method='post'>";
echo "<tr><td>Website Name:</td><td><input type='textbox' name='webname' class='textbox'></td></tr>";
echo "<tr><td>Website URL:</td><td><input type='textbox' name='weburl' class='textbox' value='http://' size='50'> (must include <b>http://</b>)</td></tr>";
echo "<tr><td>Your Name:</td><td><input type='textbox' name='yourname' class='textbox'></td></tr>";
echo "<tr><td>Site Button:</td><td><input type='textbox' name='sitebutton' class='textbox' value='http://' size='50'> (must include <b>http://</b>)</td></tr>";
echo "<tr><td>Your E-mail Address:</td><td><input type='textbox' name='youremail' class='textbox'></td></tr>";
echo "</table><input type='submit' name='submit' value='Join' class='button'></form>";
closetable();
echo "<center><a href='http://www.cgeagles.com'>Powered by CGeagles Productions</a></center>";
}
require_once "side_right.php";
require_once "footer.php";
?>
robert
Narys
Tankas
Pranešimai: 1946
Įstojęs: 2006 Gru. 18 16:12:57
Aciu musulmonas pagal tavo pavyzdi ir pasidariau
Dandžu
Narys
Ekspertas
Pranešimai: 3265
Įstojęs: 2007 Lie. 23 13:07:47
Tą top 100 esu padaręs vienam modų saite labai lengvu būdu.
Enzo
Narys
Tankas
Pranešimai: 2397
Įstojęs: 2007 Lie. 30 22:07:24
Tai čia tas pats kaip panelė yra tik čia 100?FCB arcelona
mes que un club
MAnjack
Garbės narys
Legenda
Pranešimai: 11821
Įstojęs: 2006 Kov. 2 20:03:58
Čia man atrodo populiariausi siuntinia tik, kad 100 rodo.
Dandžu
Narys
Ekspertas
Pranešimai: 3265
Įstojęs: 2007 Lie. 23 13:07:47
Jo tas pats.
robert
Narys
Tankas
Pranešimai: 1946
Įstojęs: 2006 Gru. 18 16:12:57
Galiu parasyti koda :)
_______________________
Susikuriate faila top100.php , tada irasote zemiau esanti koda
<?php
/*---------------------------------------------------+
| PHP -Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
opentable("Top 100");
echo "";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,100");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}
closetable();
require_once "side_right.php";
require_once "footer.php";
?>
Kai irasete koda issaugote dokumenta ir imetate i ftp :)
tada narsykleje rasote www.TavoSaitas.lt/top100.php ir matysite top100 siuntiniu :)
bad_user
Narys
Antras po Dievo
Pranešimai: 4956
Įstojęs: 2007 Spa. 26 20:10:01
Verčiau dėk į skriptų biblioteką. Rules: 21 & 22 Read first!
pauluxy
Narys
Buldozeris
Pranešimai: 249
Įstojęs: 2008 Kov. 12 22:03:30
Jau iš mano saito kopina
Peršokti į forumą:
Žaliems
Nebeegzistuojančios svetainės
Bendri PHP-F klausimai
WordPress
Kiti PHP, HTML, MySQL klausimai
Expert PHP, MySQL klausimai
Kitos TVS
C#, Python, Java, JS, C++ klausimai
Naujų modų pristatymai
Mods, Panels & Infusions
Themes
Dalinuosi, dovanoju!
Jūsų saitai
Klausimai apie domenus ir hostingus
VPS/DS serverių konfigūravimas ir valdymas
Viskas apie skaitliukus, top'us ir lankomumą
Dizaino konkursai
Parduodu - perku dizainą, banerį
Parduodu - perku - keičiuosi reklama
Parduodu - perku domeną, tinklapį
Siūlau - ieškau hostingo/VPS serverio
Parduodu - perku skriptą, modifikaciją, tvs
Socialiniai tinklai - Facebook ir kiti
Legalus verslas, teisiniai klausimai
Visa kita kas susiję su darbu ir pinigais
LTStartups.com - Lietuvos startuolių bendruomenė
Off-Topic diskusijos
IT naujienos
Portalo informacija
Narių pasiūlymai
Geležis ir programinė įranga
Grafika
Out Of Place
Su e-verslu nesusijęs darbas ir prekyba
Dalinuosi, dovanoju!