Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
877
ME_Haber 2.3 ..(108342 okuma, 145 yanıt) Resim Galerisi Modülü 2.0 ..(121299 okuma, 173 yanıt) Ustalardan Bir Ricam Olac ..(13557 okuma, 6 yanıt) nukecode.com will close ..(11151 okuma, 5 yanıt) super youtube player a lo ..(6318 okuma, 1 yanıt) Need good PHP Haber port ..(5584 okuma, 0 yanıt) Forum Nasil Tam Sayfa Olu ..(34966 okuma, 40 yanıt) Php nuke Forumu Düzenleme ..(9897 okuma, 6 yanıt) Yeni Üyelik Aktivasyon Li ..(10946 okuma, 6 yanıt) Aşk Flashları Modülü ..(6950 okuma, 2 yanıt) resim galeri 2.0 da kateg ..(11365 okuma, 9 yanıt) Yeni iki modul: Merhumlar ..(32233 okuma, 36 yanıt) ürün tanıtım modülü ..(25182 okuma, 23 yanıt) PHP Nuke is out ..(14931 okuma, 13 yanıt) MSN Video Bing Video oldu ..(5181 okuma, 0 yanıt) haberhit.com ..(5770 okuma, 1 yanıt) Bilgi Yarışması 1.0 tama ..(51739 okuma, 72 yanıt) Musıc Box elinde olan var ..(6662 okuma, 2 yanıt) Online Okey , Batak , Tav ..(172542 okuma, 340 yanıt) Emlak Modül ve Blockları ..(12241 okuma, 8 yanıt) WM who ist shampions ..(5026 okuma, 1 yanıt) coppermine resim galerisi ..(5468 okuma, 1 yanıt) Forumda Teşekkür Eklentis ..(9040 okuma, 7 yanıt) free wordpress themes ..(5555 okuma, 1 yanıt) JW image rotator for nsn ..(7621 okuma, 4 yanıt) need Iletisim module ..(10969 okuma, 8 yanıt) Yeni modul: İletişim modu ..(27571 okuma, 33 yanıt) Başvuru Modulu ve Etkinli ..(5805 okuma, 1 yanıt) world cup flash ..(5025 okuma, 0 yanıt) ..:: Php Nuke FTP link Ha ..(4927 okuma, 0 yanıt) yeni phpnuke youtube 2.0 ..(5151 okuma, 1 yanıt) Content Plus Önceki Konu ..(4751 okuma, 0 yanıt) Php nuke Tickets Modülü ..(7946 okuma, 5 yanıt) need help to news time ..(4527 okuma, 0 yanıt) NSN News v3.0 new plugin ..(4815 okuma, 0 yanıt) how to save flash as imag ..(6021 okuma, 2 yanıt) Video Blok Yardım Lütfen. ..(5959 okuma, 2 yanıt) gazete ara ..(9749 okuma, 5 yanıt) Bizim Yazarlar ve Bizim Ş ..(14870 okuma, 14 yanıt) Nuke Reflections v2 Türkç ..(14490 okuma, 14 yanıt) CNB Your Account 750 442 ..(14177 okuma, 13 yanıt) Admin panelindeki simge ç ..(12295 okuma, 9 yanıt) Hosting Modülü ..(13955 okuma, 13 yanıt) Bizim şairler Modülü ..(5161 okuma, 1 yanıt) new plugin for nsn news v ..(4742 okuma, 1 yanıt) php nuke 8.0 türkce dil s ..(6890 okuma, 3 yanıt) Kan Bankası Modül istek ..(6117 okuma, 2 yanıt) Haber Konulari Sayfasinda ..(5731 okuma, 2 yanıt) Kan Bankası Modülünde İsi ..(7027 okuma, 3 yanıt) sonhaberler flash block ..(6599 okuma, 4 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - Oyunlar Modülünde Hata
Önceki başlık :: Sonraki başlık
Yazar
Mesaj
Regal Mesaj: 100+
Kayıt: Oct 28, 2006 Mesajlar: 156 Konum: kullan.net
Tarih: 2007-12-01, 17:41:24 Mesaj konusu: Oyunlar Modülünde Hata
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in modules/Oyunlar/admin.php on line 30
Kod:
<?
###################################
# Oyunlar Modülü #
# Web : http://www.phpkolik.com #
# Email : webmaster@phpkolik.com #
###################################
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ();
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
if (!is_admin($admin)) {
header("Location: $module_url");
exit();
}
if(!is_array($admin)) {
$admin_new = base64_decode($admin);
$admin_new = explode(":", $admin_new);
$aid = "$admin_new[0]";
} else {
$aid = "$admin_new[0]";
}
$f_result = mysql_query("SELECT radminsuper, radminarticle FROM ".$prefix."_authors WHERE aid='$aid'");
list($radminsuper, $radminarticle) = mysql_fetch_row($f_result);
if ($radminsuper == 1 || $radminarticle == 1) {
include("modules/$module_name/includes/lib.php");
get_lang($module_name);
if ($isset_theme == 1) {
$index = 2;
} else {
$index = 0;
}
$pagetitle .= " - " . _IO_ADMIN_TITLE;
function admin_header()
{
global $isset_theme, $admin_url, $module_url;
module_header();
title(_IO_ADMIN_TITLE);
OpenTable();
echo "<center>";
echo "[ <a href=\"$admin_url\">"._IO_ADMIN_TITLE."</a> ] ";
if ($isset_theme == 0) {
echo " [ <a href=\"$module_url\">"._IO_N_MAIN."</a> ] ";
}
echo " [ <a href=\"$admin_url&op=module_config\">"._IO_CONFIG."</a> ] ";
echo "</center>";
CloseTable();
echo "<br>";
}
function index()
{
global $io_db, $module_name, $allow_direct, $admin_url, $module_url;
admin_header();
OpenTable();
echo "<b>"._IO_ADMIN_WAITING_TEXT."</b>";
$result = mysql_query("SELECT id, date, title, text, sender FROM ".$io_db['text_add']." ORDER BY id LIMIT 1");
$numrows = mysql_num_rows($result);
if ($numrows != 0) {
list($id, $date, $title, $text, $sender) = mysql_fetch_row($result);
$title = stripslashes($title);
$text2 = stripslashes($text);
echo "<table border=0 cellpadding=2 cellspacing=2>";
echo "<form action=\"$admin_url\" method=\"post\">"
."<hr noshade size=\"1\"><br><table border=\"0\" cellpadding=\"1\" cellspacing=\"2\">"
."<input type=\"hidden\" name=\"id\" value=\"$id\">"
."<tr><td>"._IO_ADD_DATE." : </td><td>$date</td></tr>"
."<tr><td>"._IO_SENDER." : </td><td><input type=\"text\" name=\"sender\" value=\"$sender\" size=\"25\" maxlength=\"50\"></td></tr>"
."<tr><td>"._IO_TITLE." : </td><td><input type=\"text\" name=\"title\" value=\"$title\" size=\"25\" maxlength=\"150\"></td></tr>";
echo "<tr><td>"._IO_TEXT." : </td><td><textarea name=\"text\" rows=\"20\" wrap=\"virtual\" cols=\"50\">$text2</textarea></td></tr>";
echo "<tr><td> </td><td><input type=\"hidden\" name=\"op\" value=\"ok_added_text\"><input type=\"submit\" value=\""._ADD."\"> - [ <a href=\"$admin_url&op=del_added_text&id=$id\">"._DELETE."</a> ]</td></tr></form>";
echo "</table><br><br>";
} else {
echo "<br><br><i>"._IO_NO_ADDED_TEXT."</i><br><br>";
}
echo "<a href=\"$module_url&op=write_text\">"._IO_ADD_NEW_TEXT."</a></center>";
CloseTable();
if ($allow_direct == 0) {
OpenTable();
$result1 = mysql_query("SELECT id, sid, uname, date, comments FROM ".$io_db['comment']." WHERE active='0' ORDER BY id ASC LIMIT 1");
echo "<b>"._IO_WAITING_COMMENT."</b><br><br>";
if (mysql_num_rows($result1) == 1) {
list($id, $sid, $uname, $date, $comments) = mysql_fetch_row($result1);
$result2 = mysql_query("SELECT title FROM ".$io_db['text']." WHERE id='$sid'");
list($title) = mysql_fetch_row($result2);
echo "<blockquote>";
echo "<b>"._IO_SENDER." :</b> <a href=\"modules.php?name=Your_Account&op=userinfo&uname=$uname\">$uname</a> <b>"._IO_ADD_DATE."</b> : $date<br>"
."<br><b>"._IO_ADDED_TEXT."</b> : <a href=\"$module_url&file=read&id=$sid\">$title</a>"
." "
."[ <a href=\"$admin_url&op=del_comment&id=$id\">"._DELETE."</a> ] "
." [ <a href=\"$admin_url&op=ok_comment&id=$id\">"._IO_ADMIN_OK."</a> ]"
."<hr color=\"$bgcolor2\">"
."<b>"._IO_COMMENT."</b> : ".nl2br($comments)."";
echo "</blockquote>";
} else {
echo "<i>"._IO_WAITING_COMMENT."</i>";
}
CloseTable();
}
module_footer();
}
function ok_added_text($id, $title, $text, $sender)
{
global $io_db, $admin_url;
$title = trim($title);
$sender = trim($sender);
if ($title != "" && $text != "" && $sender != "") {
$title = stripslashes(FixQuotes($title));
$text = stripslashes(FixQuotes($text));
mysql_query("INSERT INTO ".$io_db['text']." VALUES ('', now(), '$title', '$text', '$sender', '', '', '')");
mysql_query("DELETE FROM ".$io_db['text_add']." WHERE id = $id");
}
header("Location: $admin_url");
}
function del_text($id_del)
{
global $io_db, $module_url;
if ($id_del != "" && is_numeric($id_del)) {
mysql_query("DELETE FROM ".$io_db['text']." WHERE id = $id_del");
mysql_query("DELETE FROM ".$io_db['comment']." WHERE sid='$id_del'");
}
header("Location: $module_url");
}
function mod_text($id)
{
global $io_db, $module_url, $admin_url;
if ($id != "" && is_numeric($id)) {
include ('header.php');
$result = mysql_query("SELECT id, date, title, text, sender, hits, voter, vote FROM ".$io_db['text']." WHERE id = $id");
list($id, $date, $title, $text, $sender, $hits, $voter, $vote) = mysql_fetch_row($result);
title(_IO_ADMIN_EDIT_TEXT);
OpenTable();
echo "<form method=\"post\" action=\"$admin_url\">"
."<input type=\"hidden\" name=\"op\" value=\"mod_text_end\">"
."<input type=hidden name=id value=$id>";
echo "<table border=\"0\">"
."<tr><td width=100><b>"._RDATE."</b></td><td><INPUT TYPE=text NAME=date SIZE=15 VALUE=\"$date\" MAXLENGTH=10></td></tr>"
."<tr><td width=100><b>"._REVIEWER."</b></td><td><INPUT TYPE=text NAME=sender SIZE=30 MAXLENGTH=40 value=\"$sender\"></td></tr>"
."<tr><td width=100><b>"._RTITLE."</b></td><td><INPUT TYPE=text NAME=title SIZE=30 MAXLENGTH=50 value=\"$title\"></td></tr>"
."<tr><td width=100><b>"._RTEXT."</b></td><td><TEXTAREA class=textbox name=text rows=30 wrap=virtual cols=50>$text</TEXTAREA></td></tr>"
."<tr><td width=100><b>"._IO_TOTAL_VOTE."</b></td><td><INPUT TYPE=text NAME=voter value=\"$voter\" size=6 maxlength=6></td></tr>"
."<tr><td width=100><b>"._IO_TOTAL_POINT."</b></td><td><INPUT TYPE=text NAME=vote value=\"$vote\" size=6 maxlength=6></td></tr>"
." <tr><td width=100><b>"._HITS.":</b></td><td><INPUT TYPE=text NAME=hits value=\"$hits\" size=6 maxlength=6></td></tr></TABLE>"
."<br><input type=submit value=\""._IO_SAVE."\"> <input type=button onClick=history.go(-1) value="._CANCEL."></form>";
CloseTable();
module_footer();
} else {
header("Location: $module_url");
}
}
function mod_text_end($id, $date, $title, $text, $sender, $voter, $vote, $hits)
{
global $module_name, $io_db, $module_url, $admin_url;
module_header();
title(_IO_ADMIN_EDIT_TEXT);
OpenTable();
if ($id != "" && is_numeric($id) && $date != "" && $title != "" && $text != "" && $sender != "" && is_numeric($voter) && is_numeric($vote) && is_numeric($hits)) {
$title = words2upper($title);
$result = mysql_query("UPDATE ".$io_db['text']." SET date='$date',title='$title',text='$text',sender='$sender',vote='$vote',voter='$voter',hits='$hits' WHERE id='$id'");
if ($result) {
echo "<center>"._IO_ADMIN_EDIT_THANKS."</center>";
} else{
echo "<center>"._IO_ADMIN_EDIT_FALSE."</center>";
}
} else {
echo "<center>"._IO_LESS_INFO."</center>";
}
CloseTable();
module_footer();
}
function del_comment($id, $sid)
{
global $io_db, $module_url, $admin_url;
mysql_query("DELETE FROM ".$io_db['comment']." WHERE id='$id'");
if (isset($sid) && $sid != "") {
header("Location: $module_url&file=read&id=$sid");
} else {
header("Location: $admin_url");
}
}
function ok_comment($id)
{
global $io_db, $admin_url;
mysql_query("UPDATE ".$io_db['comment']." SET active='1' WHERE id='$id'");
header("Location: $admin_url");
}
function del_added_text($id)
{
global $io_db, $admin_url;
if ($id != "" && is_numeric($id)) {
mysql_query("DELETE FROM ".$io_db['text_add']." WHERE id='$id'") or die();
}
header("Location: $admin_url");
}
function module_config()
{
global $io_db, $admin_url, $bgcolor2, $bgcolor4, $module_name;
admin_header();
echo "<script src=\"modules/$module_name/includes/j a v a s c r i p t.js\"></script>";
$result_config = mysql_query("SELECT index_page_items, list_page_items, top_page_items, isset_theme, allow_anonymous, allow_direct, less_vote FROM ".$io_db['config']." WHERE sitename='isikonline'");
list($old_index_page_items, $old_list_page_items, $old_top_page_items, $old_isset_theme, $old_allow_anonymous, $old_allow_direct, $old_less_vote) = mysql_fetch_row($result_config);
OpenTable();
echo "<table align=\"center\" cellspacing=\"2\" cellspacing=\"2\" style=\"border:1 solid $bgcolor2\" width=\"400\">\n"
."<form action=\"$admin_url\" method=\"post\">\n"
."<tr><td colspan=\"2\" align=\"center\" height=\"25\" bgcolor=\"$bgcolor2\"><font class=\"title\">"._IO_CONFIG."</font></td></tr>\n"
."<tr><td height=\"20\" align=\"center\" valign=\"top\" bgcolor=\"$bgcolor4\" style=\"border:1 solid $bgcolor2\"><input type=\"text\" name=\"new_index_page_items\" value=\"$old_index_page_items\" size=\"10\" maxlength=\"2\"></td><td bgcolor=\"$bgcolor4\" style=\"border:1 solid $bgcolor2\">"._IO_INDEX_PAGE_ITEMS."</td></tr>\n"
."<tr><td height=\"20\" align=\"center\" valign=\"top\" bgcolor=\"$bgcolor4\" style=\"border:1 solid $bgcolor2\"><input type=\"text\" name=\"new_list_page_items\" value=\"$old_list_page_items\" size=\"10\" maxlength=\"2\"></td><td bgcolor=\"$bgcolor4\" style=\"border:1 solid $bgcolor2\">"._IO_LIST_PAGE_ITEMS."</td></tr>\n"
."<tr><td height=\"20\" align=\"center\" valign=\"top\" bgcolor=\"$bgcolor4\" style=\"border:1 solid $bgcolor2\"><input type=\"text\" name=\"new_top_page_items\" value=\"$old_top_page_items\" size=\"10\" maxlength=\"2\"></td><td bgcolor=\"$bgcolor4\" style=\"border:1 solid $bgcolor2\">"._IO_TOP_PAGE_ITEMS."</td></tr>\n";
echo "<tr><td align=\"center\" valign=\"top\" bgcolor=\"$bgcolor4\" style=\"border:1 solid $bgcolor2\"><select name=\"new_isset_theme\" size=\"2\">";
if ($old_isset_theme == 1) {
echo "<option value=\"1\" selected>"._YES."</option>"
."<option value=\"0\">"._NO."</option>";
} else {
echo "<option value=\"1\">"._YES."</option>"
."<option value=\"0\" selected>"._NO."</option>";
}
echo "</select></td><td bgcolor=\"$bgcolor4\" style=\"border:1 solid $bgcolor2\" valign=\"top\">"._IO_ISSET_THEME." - [ <a href=\"j a v a s c r i p t:open_help('modules/$module_name/docs/help.php?help_file_name=theme&help_file_title=Tema')\">YARDIM</a> ]</td></tr>\n";
echo "<tr><td align=\"center\" valign=\"top\" bgcolor=\"$bgcolor4\" style=\"border:1 solid $bgcolor2\"><select name=\"new_allow_anonymous\" size=\"2\">";
if ($old_allow_anonymous == 1) {
echo "<option value=\"1\" selected>"._YES."</option>"
."<option value=\"0\">"._NO."</option>";
} else {
echo "<option value=\"1\">"._YES."</option>"
."<option value=\"0\" selected>"._NO."</option>";
}
echo "</select></td><td bgcolor=\"$bgcolor4\" style=\"border:1 solid $bgcolor2\" valign=\"top\">"._IO_ALLOW_ANONYMOUS."</td></tr>\n";
echo "<tr><td align=\"center\" valign=\"top\" bgcolor=\"$bgcolor4\" style=\"border:1 solid $bgcolor2\"><select name=\"new_allow_direct\" size=\"2\">";
if ($old_allow_direct == 1) {
echo "<option value=\"1\" selected>"._YES."</option>"
."<option value=\"0\">"._NO."</option>";
} else {
echo "<option value=\"1\">"._YES."</option>"
."<option value=\"0\" selected>"._NO."</option>";
}
echo "</select></td><td bgcolor=\"$bgcolor4\" style=\"border:1 solid $bgcolor2\" valign=\"top\">"._IO_ALLOW_DIRECT."</td></tr>\n";
echo "<tr><td height=\"20\" align=\"center\" valign=\"top\" bgcolor=\"$bgcolor4\" style=\"border:1 solid $bgcolor2\"><input type=\"text\" name=\"new_less_vote\" value=\"$old_less_vote\" size=\"10\" maxlength=\"2\"></td><td bgcolor=\"$bgcolor4\" style=\"border:1 solid $bgcolor2\">"._IO_LESS_VOTE."</td></tr>\n"
."<tr><td colspan=\"2\" height=\"20\" align=\"center\" valign=\"top\" bgcolor=\"$bgcolor4\" style=\"border:1 solid $bgcolor2\"><input type=\"submit\" value=\""._IO_SAVE."\"><input type=\"hidden\" name=\"op\" value=\"module_config_end\"></tr>\n"
."</form>"
."</table>\n";
CloseTable();
module_footer();
}
function module_config_end($new_index_page_items, $new_list_page_items, $new_top_page_items, $new_isset_theme, $new_allow_anonymous, $new_allow_direct, $new_less_vote)
{
global $io_db, $admin_url, $module_url;
admin_header();
OpenTable();
if ($new_index_page_items != "" && $new_list_page_items != "" && $new_top_page_items != "" && $new_isset_theme != "" && $new_allow_anonymous != "" && $new_allow_direct != "" && $new_less_vote != "" && is_numeric($new_index_page_items) && is_numeric($new_list_page_items) && is_numeric($new_top_page_items) && is_numeric($new_isset_theme) && is_numeric($new_allow_anonymous) && is_numeric($new_allow_direct) && is_numeric($new_less_vote) && $new_index_page_items < 100 && $new_list_page_items < 100 && $new_top_page_items < 100 && $new_isset_theme < 2 && $new_allow_anonymous < 2 && $new_allow_direct < 2 && $new_less_vote < 100 && $new_index_page_items > 0 && $new_list_page_items > 0 && $new_top_page_items > 0 && $new_isset_theme >= 0 && $new_allow_anonymous >= 0 && $new_allow_direct >= 0 && $new_less_vote > 0) {
mysql_query("UPDATE ".$io_db['config']." SET index_page_items='$new_index_page_items', list_page_items='$new_list_page_items', top_page_items='$new_top_page_items', isset_theme='$new_isset_theme', allow_anonymous='$new_allow_anonymous', allow_direct='$new_allow_direct', less_vote='$new_less_vote'") or die(_IO_QUERY_ERROR);
echo "<center>"._IO_CONFIG_UPDATE_OK."</center>";
} else {
echo "<center>"._IO_LESS_INFO."</center>";
}
CloseTable();
module_footer();
}
switch ($op){
case module_config_end:
module_config_end($new_index_page_items, $new_list_page_items, $new_top_page_items, $new_isset_theme, $new_allow_anonymous, $new_allow_direct, $new_less_vote);
break;
case module_config:
module_config();
break;
case del_added_text:
del_added_text($id);
break;
case ok_comment:
ok_comment($id);
break;
case del_comment:
del_comment($id, $sid);
break;
case mod_text_end:
mod_text_end($id, $date, $title, $text, $sender, $voter, $vote, $hits);
break;
case mod_text:
mod_text($id);
break;
case del_text:
del_text($id_del);
break;
default:
index();
break;
case ok_added_text:
ok_added_text($id, $title, $text, $sender);
break;
}
}
?>
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-05-06, 02:45:13 Mesaj konusu: Forum Arası Reklamlar
Başa dön
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız