Yangi formatda davom etish uchun: https://uzfor.net/76177-zet-pro2003-dan-oddiy-ammo-foydali-sovgalar.html
ZET-PRO2003-dan oddiy ammo foydali sovg'alar
Mavzu fayllari (1)
Xabarlar
Salom dostlar! Bazi birlari forumda sovg'alar ulashyabti!
Men xam uxlab kolmay deb, bitta-ikkita JohnCMS uchun tuzgan modullarimni sovg'a qilishni niyat qildim! Unda boshladik!
1. @nik modi(sahifaga manzil yaratish):
Sayt ildizidagi Install/install.sql faylga pastgi kodlarni joylashtiring:
--
-- Структура таблицы `niksalgy`
--
DROP TABLE IF EXISTS `niksalgy`;
CREATE TABLE `niksalgy` (
`id` int(5) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(5) NOT NULL,
`nik` text NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
va Users ustuniga `anik` INT(11) NOT NULL DEFAULT '0',
kodni koshing!
Saytingiz ildiziga @nik.php faylni yarating va ichiga pastdagi kodlarni kiriting:
Ozbekcha unchalik yozolmayman, gramatiki xatolar uchun uziraa...
Xozircha shu kod, albatda yanada foydali kodlarni ulashaman!
Iltmos offtop bolmasin!
Men xam uxlab kolmay deb, bitta-ikkita JohnCMS uchun tuzgan modullarimni sovg'a qilishni niyat qildim! Unda boshladik!
1. @nik modi(sahifaga manzil yaratish):
Sayt ildizidagi Install/install.sql faylga pastgi kodlarni joylashtiring:
--
-- Структура таблицы `niksalgy`
--
DROP TABLE IF EXISTS `niksalgy`;
CREATE TABLE `niksalgy` (
`id` int(5) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(5) NOT NULL,
`nik` text NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
va Users ustuniga `anik` INT(11) NOT NULL DEFAULT '0',
kodni koshing!
Saytingiz ildiziga @nik.php faylni yarating va ichiga pastdagi kodlarni kiriting:
<?php require('incfiles/core.php'); $textl = 'Sahifaga manzil yasash'; require('incfiles/head.php'); if (!$user_id) { echo '<div class="rmenu">Faqat azolar uchun!</div>'; } else { case 'al': echo '<div class="gmenu"><big>Matin kiritmadingiz!</big></div>'; break; } $total = $total['total']; if ($total > '0'){ echo '<div class="gmenu"><big>Buday @sahifa saytda avval xam bor!<br/>Iltmos, boshqa @sahifa kiriting!</big></div>'; break; } $total = $total['total']; if ($total > '0'){ echo "Kechirasiz, siz avval xam profilingiz uchun @sahifa koygansiz..."; break; } echo '<div class="gmenu"><big>Nomalum belgilar!</big></div>'; break; } $drn = functions::check($_POST['nik']); if ($mk == true) { define('_IN_JOHNCMS', 1); require_once('../incfiles/core.php'); require_once('../incfiles/head.php'); header('Refresh: 1; url=http://saytingiz.uz/users/profile.php?user=$user_id'); require_once('../incfiles/end.php'); ?>"); if ($fp){ `user_id` = '".$user_id."', `nik` = '".$drn."', "); echo "<div class='gmenu'>Tabriklaymiz! Profilingizga @sahifa ulandi!<br/><a href='".$home."/@".$drn."'>Mening @sahifam</a></div>"; }} break; default: echo '<div class="phdr"><a href="../shop">Sayt dokoni</a> | <b>Sahifaga manzil yasash</b></div>'; echo '<div class="menu">'; if ($datauser['manat'] < 15){ echo '<big>Hozirgi vaqtda @sahifa yaratish uchun, hisobingizda yetarlicha ball yoq! Xizmat narxi: 500 ball<br/>Saytda faol bolib ballaringizni oshirshingiz mumkun!</big>'; }else{ echo '<font color="green"><big>'.$login.', siz bu yerda sahifangiz uchun @ manzil yaratishingiz mumkun! <br/> Hyzmat bahasy 15 manat!<br/>Sizde: '.$datauser['manat'].' manat bar!<br/>Eslatma: @sahifani faqat bir martda yaratish mumkun!</big></font><br/> <b><big>Soz yoki Tahallus:</big></b> <form action="@nik.php?act=al" method="POST"> <p>http://saytingiz.uz/@<input type="text" name="nik" value="" /></p> <input type="submit" value="Tayyor" /></form>'; } echo '</div>'; break; }} require('incfiles/end.php'); ?>
Ozbekcha unchalik yozolmayman, gramatiki xatolar uchun uziraa...
Xozircha shu kod, albatda yanada foydali kodlarni ulashaman!
Iltmos offtop bolmasin!
Exe siz sahifaga manzil yasash uchun sayt korenida har bir user uchun alohida papka yaratyabsizmi?
WTF????
WTF????
Enrique, ha shunday. WTF nima u?? Kani polni yozingche...
5 daqiqa 27 soniyadan keyin yozdi:
Mana yanada bitda foyldaliroq kod
Bu kod orqali bosh sahifaga 3-ta, 3 gal va undan kop Kerakli mavzu bolgan mavuzlar nomini bosh sahifaga chiqaradi(+Kerakli bolganini xam)
Budan tashqari mavuz avtoriga, 1-ta mavusi 1marttda kerlakli deb bosilsa, 50 bal, 2marttda bolsa 75 ball, 3marttda bolsa 100 ball avto beriladi va mavzusi kerakli deb bosilganda avto notif xabarnoma boradi!
Eslatma, kod JohnCMS uchun va sizdagi forum-da raxmat, plus, minus, kerakli mavzu va keraksiz mavuz kodlari bolishi kerak!
Demak kodga boshladik:
saytildizi/forum/ pagasi ichiga kiring va install-g.php deb fayl yaratib ichiga pastgi kodni kiriting!
Mana bu yoldagi saytildizi/forum/includes/m1.php faylni ichini kodlardan tozalab pastgi kodni kiriting!
Mana bu kodni ozingizga mos joyga koying, saytildizi/pages/mainmenu.php fayli ichiga pastgi kodni kiriting:
Yanada foydali kod joylashtirib turaman, okaxonlar!
2 kun 11 soat 58 daqiqa 40 soniyadan keyin yozdi:
Mana sizlaga yana mandan foydali kod sovgasi!
Kod haqida: bu kod huddi uzfor.uznikiday Qora bozor modi, faqat man yozgan kodda foydali koshimchalari bor, muni kodda korasiz!
30 kun 10 soat 14 daqiqa 5 soniyadan keyin yozdi:
users ustuniga bu sql koni koshing
`ulgamda` INT(11) NOT NULL DEFAULT '0',
sayt ildizi/shop/online.php faylni yarating va pastgi kodni kirting!
sayt ildizi/users/includes/profile/settings.php faylni ochistka(tozalang) kilng va pastgi kodni yozing:
Eslatma: bu kodni ishlash uchun, sizning JohnCMS skriptingizda bot modili ulangan bolishi kerak, bolasa ishlamaydi!
40 kun 22 soat 7 daqiqa 25 soniyadan keyin yozdi:
Salom dostlar! JohnCMS uchun profile.php, aziz forumdoshlar bilan ulashmoqchiman.
Ammo avvalidan aytaman, bazi kodlar sizda ishlamasligi mumkun(telegram profile v.h.k):
JohnCMS uchun kod kerak bolsa yasab beraman!
40 kun 22 soat 9 daqiqa 18 soniyadan keyin yozdi:
Hurmatli dostlar yaqinda @nik(sahifa manzili) kodining taqomillashganini tarqataman!
.htaccess orqali tuzulganini!
5 daqiqa 27 soniyadan keyin yozdi:
Mana yanada bitda foyldaliroq kod
Bu kod orqali bosh sahifaga 3-ta, 3 gal va undan kop Kerakli mavzu bolgan mavuzlar nomini bosh sahifaga chiqaradi(+Kerakli bolganini xam)
Budan tashqari mavuz avtoriga, 1-ta mavusi 1marttda kerlakli deb bosilsa, 50 bal, 2marttda bolsa 75 ball, 3marttda bolsa 100 ball avto beriladi va mavzusi kerakli deb bosilganda avto notif xabarnoma boradi!
Eslatma, kod JohnCMS uchun va sizdagi forum-da raxmat, plus, minus, kerakli mavzu va keraksiz mavuz kodlari bolishi kerak!
Demak kodga boshladik:
saytildizi/forum/ pagasi ichiga kiring va install-g.php deb fayl yaratib ichiga pastgi kodni kiriting!
<?php $headmod = 'install-g'; require_once ("../incfiles/core.php"); require_once ("../incfiles/head.php"); echo'Kani kani...'; echo'<div class="gmenu">Yess Tayyor xammasi oka.</div> <div class="rmenu">install-g.php faylni ochirish esdanchiqmasinaa, tagin yana uxlab kolmang !</div> '; require_once ('../incfiles/end.php');
Mana bu yoldagi saytildizi/forum/includes/m1.php faylni ichini kodlardan tozalab pastgi kodni kiriting!
<?php /* JohnCMS uchun moddcha Taxrirlovchi ZET-PRO2003 | Sanat Shaydosi!!! */ require('../incfiles/head.php'); $error = false; if ($id) { if (mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_mavzu` WHERE `tema` = '$id' AND `us` = '$user_id' AND `javob` = '1'"), 0) > 0) { echo functions::display_error('1 mavuzni 1 gal kerakli deb belgilash mumkun!'); require('../incfiles/end.php'); exit; } $halanyldy = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_mavzu` WHERE `tema` = '".$res['id']."' AND `javob` = '1'"),0); if ($halanyldy>=3 && $halanyldy<=3) { // ulanyja ball // ulanyja habar $user = mysql_fetch_assoc(mysql_query("SELECT * FROM `users` WHERE `id` = '" . $res['user_id']. "'")); $tema = 'Forum'; $text = 'Salom hurmatli '.$user_id.'">'.$user['name'].'! Sizning mavzuyingizni 3 gal kerakli deb belgilashdi! Yaxshi mavzu yaratganingiz uchun sizga +100 ball berildi!'; `user_id` = '".$user_id."', `from_id` = '".$res['user_id']."', `text` = '".$text."', `sys` = '1', `them` = '".$tema."'"); } $halanyldy2 = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_mavzu` WHERE `tema` = '".$res['id']."' AND `javob` = '1'"),0); if ($halanyldy2>=2 && $halanyldy2<=2) { // ulanyja ball // ulanyja habar $user = mysql_fetch_assoc(mysql_query("SELECT * FROM `users` WHERE `id` = '" . $res['user_id']. "'")); $tema = 'Forum'; $text = 'Salom hurmatli '.$user_id.'">'.$user['name'].'! Sizning mavzuyingizni 3 gal kerakli deb belgilashdi! Yaxshi mavzu yaratganingiz uchun sizga +75 ball berildi'; `user_id` = '".$user_id."', `from_id` = '".$res['user_id']."', `text` = '".$text."', `sys` = '1', `them` = '".$tema."'"); } $halanyldy3 = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_mavzu` WHERE `tema` = '".$res['id']."' AND `javob` = '1'"),0); if ($halanyldy3>=1 && $halanyldy3<=1) { // ulanyja ball // ulanyja habar $user = mysql_fetch_assoc(mysql_query("SELECT * FROM `users` WHERE `id` = '" . $res['user_id']. "'")); $tema = 'Forum'; $text = 'Salom hurmatli '.$user_id.'">'.$user['name'].'! Sizning mavzuyingizni 1 gal kerakli deb belgilashdi! Yaxshi mavzu yaratganingiz uchun sizga +50 ball berildi'; `user_id` = '".$user_id."', `from_id` = '".$res['user_id']."', `text` = '".$text."', `sys` = '1', `them` = '".$tema."'"); } } else { } ?>
Mana bu kodni ozingizga mos joyga koying, saytildizi/pages/mainmenu.php fayli ichiga pastgi kodni kiriting:
echo '<div class="phdr">Top Kerakli Mavzular</div>'; $req = mysql_query("SELECT * FROM `forum` WHERE `type` = 't' AND `close`!='1' AND `gmowzuk` >= '3' ORDER BY `time` DESC LIMIT 3"); $i = 0; $mplus = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_mavzu` WHERE `tema` = '".$res['id']."' AND `javob` = '1'"),0); echo ($i % 2 ? '<div class="list2">' : '<div class="list1">') . '<a href="' . $set['homeurl'] . '/forum/index.php?id=' . $res['id'] . '">' . $res['text'] . '</a>(' . functions::display_date($res['time']) . ') <font color="green">+'.$mplus.'</font>' . '</div></div>'; ++$i; } } else { echo '<div class="menu"><p>Hozircha +3 Kerakli bolgan mavzular yoq!</p></div>'; }
Yanada foydali kod joylashtirib turaman, okaxonlar!
2 kun 11 soat 58 daqiqa 40 soniyadan keyin yozdi:
Mana sizlaga yana mandan foydali kod sovgasi!
Kod haqida: bu kod huddi uzfor.uznikiday Qora bozor modi, faqat man yozgan kodda foydali koshimchalari bor, muni kodda korasiz!
<?php $headmod = 'bank'; $textl = 'Bank'; require_once ("../incfiles/core.php"); require_once ("../incfiles/head.php"); if (!$user_id) { echo display_error('Faqat azolar uchun!'); exit; } echo '<div class="phdr"><a href="../shop">Sayt dokoni</a> | <b>Bank</b></div>'; //Название switch ($act){ default: echo '<div class="habar1"><a href="../shop/bank.php?act=ball"> Ballarni somga almashtirsh </a></div>'; echo '<div class="habar1"><a href="../shop/bank.php?act=manat"> Somlarni ballarga almashtirish </a></div>'; break; case 'manat': echo '<div class="menu"><big><font color="green">'.$login.', siz bu yerda, hisobingizdagi somlarni ballarga almashtirshingiz mumkun!<br/>Hozirgi paytda 1 som = 75 ball!</font></big><br/>'; echo 'Sizda <b>'.$datauser['manat'].'</b> som bor!<br/>'; echo 'Sizda: <b>'.$datauser['balans'].'</b> ball bor!<br/>'; echo 'Necha somni balla almashtirisiz?<br/>'; echo '<form action="../shop/bank.php?act=chalyshmanat" method="post">'; echo '<input type="text" name="num"><br/>'; echo '<input type="submit" name="submit" value="Almashtir" />'; echo '</form></div>'; break; case 'chalyshmanat': { $num = ($_POST['num']); if(!$num || $num<1){ echo '<div class="menu"><font color="red">Xatolik!</font></div>'; require_once('../incfiles/end.php'); exit; } if ($_POST['num'] < 3){ echo '<div class="menu"><font color="red">Kamida 3 somni balla almashtirish mumkun!</font></div>'; require_once('../incfiles/end.php'); exit; } if($datauser['manat']<$num){ echo '<div class="menu"><font color="red">Hisobingizda yetarlicha somlar yoq!</font></div>'; require_once('../incfiles/end.php'); exit; } $baks=$num*75; $ball=$num; $i = 0; $tema = 'Bank'; $text = 'Salom hurmatli .$user_id.'">'.$user2['name'].' azo, siz hisobingizdagi '.$ball.' somni '.$baks.' ballga, bank orqali almashtirdingiz!'; `user_id` = '".$user_id."', `from_id` = '".$user_id."', `text` = '".$text."', `sys` = '1', `them` = '".$tema."'"); ++$i; }} echo '<div class="menu"><font color="green"><big>Tabriklaymiz! Siz '.$ball.' somni '.$baks.' ballga almashtirdingiz!</big></font></div>'; } break; case 'ball': echo '<div class="menu"><big><font color="green">'.$login.', siz bu yerda, hisobingizdagi ballarni somga almashtirshingiz mumkun!<br/>Hozigi paytda 100 ball = 1 som!</font></big><br/>'; echo 'Sizda <b>'.$datauser['balans'].'</b> ball bor!<br/>'; echo 'Sizda: <b>'.$datauser['manat'].'</b> som bor!<br/>'; echo 'Necha ballni somga almashamiz?<br/>'; echo '<form action="../shop/bank.php?act=chalyshball" method="post">'; echo '<input type="text" name="num"><br/>'; echo '<input type="submit" name="submit" value="Almashtir" />'; echo '</form></div>'; break; case 'chalyshball': { $num = ($_POST['num']); if(!$num || $num<1){ echo '<div class="menu"><font color="red">Xatolik!</font></div>'; require_once('../incfiles/end.php'); exit; } if ($_POST['num'] < 300){ echo '<div class="menu"><font color="red">Eng kam ballni somga 300 ball!</font></div>'; require_once('../incfiles/end.php'); exit; } if($datauser['balans']<$num){ echo '<div class="menu"><font color="red">Hisobingizda yetarlicha ball yoq!</font></div>'; require_once('../incfiles/end.php'); exit; } $baks=$num/100; $i = 0; $tema = 'Bank'; $text = 'Salom hurmatli .$user_id.'">'.$user2['name'].' azo, siz hisobingizdagi '.$num.' ballni '.$baks.' somga, bank orqali almashtirdingiz!'; `user_id` = '".$user_id."', `from_id` = '".$user_id."', `text` = '".$text."', `sys` = '1', `them` = '".$tema."'"); ++$i; }} echo '<div class="menu"><font color="green"><big>Tabriklaymiz! Siz '.$num.' ballni '.$baks.' somga almashdingiz!</big></font></div>'; } break; } require_once ("../incfiles/end.php"); ?>
30 kun 10 soat 14 daqiqa 5 soniyadan keyin yozdi:
users ustuniga bu sql koni koshing
`ulgamda` INT(11) NOT NULL DEFAULT '0',
sayt ildizi/shop/online.php faylni yarating va pastgi kodni kirting!
<?php $textl = 'Online bolish'; $headmod = 'onbolmak' require('../incfiles/core.php'); require('../incfiles/head.php'); switch ($act) { default: echo '<div class="phdr"><a href="../shop">Sayt dokoni</a> | <b>Online bolish</b></div>'; echo '<div class="menu"><b>'.$login.'</b> siz bu yerda, doyim profilingizni online kilishingiz mumkun! Ximatdan foydalanganingizdan song, xizmatni ochirishni xoxlasangiz <a href="../users/profile.php?act=settings"><u>Sistema sozlanmalari</u></a>dan Online bolmaslik yozuvni bossangiz, online bolishdan chiqishingiz mumkun!<br/>Shu xizmatdan bir martda foydalanganizdan song, online bolish yoki bolmaslik oz kolizda!<br/><big><font color="green">SIzda '.$datauser['balans'].' ball bor!<br/>Xizmat narxi: 3000 ball</font></big><br/><br/>'; $ulgamda = mysql_result(mysql_query("SELECT `bot`='1' FROM `users` WHERE `id` = '" . $user_id . "'"), 0); if ($datauser['balans'] < 3000){ echo '<font color="red">Hozirgi paytda bu xizmatdan foydalanish uchun hisobingizda yetarlicha ball yoq!<br/>Hisobingizni toldirib, xizmatdan foydalanshingiz mumkun!</font>'; }elseif($ulgamda){ echo '<font color="red">Siz online bolish hizmatidan foydalangansiz! Xizmatdan faqat 1 martda foydalanish mumkun, kolganini, sistema sozlanmalaridan oziz hal kilasiz!</font>'; }else{ echo '<form action="../shop/online.php?act=onbol" method="post">'; echo '<input type="submit" name="submit" value="Online bol" />'; echo '</form>'; } echo '</div>'; break; case 'onbol': if ($_POST['submit']) { mysql_query("update `users` set`bot`='1',`lastdate`='".time()."' where `id`='".$user_id."' limit 1"); echo'<div class="menu">Doyim online bolish xizmati yoqildi!</div>'; } break; } require('../incfiles/end.php'); ?>
sayt ildizi/users/includes/profile/settings.php faylni ochistka(tozalang) kilng va pastgi kodni yozing:
<?php /** * @package JohnCMS * @link http://johncms.com * @copyright Copyright (C) 2008-2011 JohnCMS Community * @license LICENSE.txt (see attached file) * @version VERSION.txt (see attached file) * @author http://johncms.com/about */ $lng_set = core::load_lng('settings'); $textl = $lng['settings']; require('../incfiles/head.php'); /* ----------------------------------------------------------------- Проверяем права доступа ----------------------------------------------------------------- */ if ($user['id'] != $user_id) { echo functions::display_error($lng['access_forbidden']); require('../incfiles/end.php'); exit; } (!$mod ? '<b>' . $lng['common_settings'] . '</b>' : '<a href="profile.php?act=settings">' . $lng['common_settings'] . '</a>'), ($mod == 'forum' ? '<b>' . $lng['forum'] . '</b>' : '<a href="profile.php?act=settings&mod=forum">' . $lng['forum'] . '</a>'), ($mod == 'mail' ? '<b>' . $lng['mail'] . '</b>' : '<a href="profile.php?act=settings&mod=mail">' . $lng['mail'] . '</a>'), ); /* ----------------------------------------------------------------- Пользовательские настройки ----------------------------------------------------------------- */ switch ($mod) { case 'mail': echo '<div class="phdr"><b>' . $lng['settings'] . '</b> | ' . $lng['mail'] . '</div>' . '<div class="topmenu">' . functions::display_menu($menu) . '</div>'; mysql_query("UPDATE `users` SET `set_mail` = '" . mysql_real_escape_string(serialize($set_mail_user)) . "' WHERE `id` = '$user_id'"); } echo '<form method="post" action="profile.php?act=settings&mod=mail">' . '<div class="menu">' . '<strong>' . $lng_profile['write_messages'] . '</strong><br />' . '<input type="radio" value="0" name="access" ' . (!$set_mail_user['access'] ? 'checked="checked"' : '') . '/> ' . $lng_profile['write_all'] . '<br />' . '<input type="radio" value="1" name="access" ' . ($set_mail_user['access'] == 1 ? 'checked="checked"' : '') . '/> ' . $lng_profile['write_contacts'] . '<br />' . '<input type="radio" value="2" name="access" ' . ($set_mail_user['access'] == 2 ? 'checked="checked"' : '') . '/> ' . $lng_profile['write_friends'] . '<br/><p><input type="submit" name="submit" value="' . $lng['save'] . '"/></p></div></form>' . '<div class="phdr"> </div>'; break; case 'forum': /* ----------------------------------------------------------------- Настройки Форума ----------------------------------------------------------------- */ echo '<div class="phdr"><b>' . $lng['settings'] . '</b> | ' . $lng['forum'] . '</div>' . '<div class="topmenu">' . functions::display_menu($menu) . '</div>'; if ($set_forum['postclip'] < 0 || $set_forum['postclip'] > 2) { $set_forum['postclip'] = 1; } mysql_query("UPDATE `users` SET `set_forum` = '" . mysql_real_escape_string(serialize($set_forum)) . "' WHERE `id` = '$user_id'"); echo '<div class="gmenu">' . $lng['settings_saved'] . '</div>'; } $set_forum['farea'] = 0; $set_forum['upfp'] = 0; $set_forum['preview'] = 1; $set_forum['postclip'] = 1; mysql_query("UPDATE `users` SET `set_forum` = '" . mysql_real_escape_string(serialize($set_forum)) . "' WHERE `id` = '$user_id'"); echo '<div class="rmenu">' . $lng['settings_default'] . '</div>'; } echo '<form action="profile.php?act=settings&mod=forum" method="post">' . '<div class="menu"><p><h3>' . $lng_set['main_settings'] . '</h3>' . '<input name="upfp" type="checkbox" value="1" ' . ($set_forum['upfp'] ? 'checked="checked"' : '') . ' /> ' . $lng_set['sorting_return'] . '<br/>' . '<input name="farea" type="checkbox" value="1" ' . ($set_forum['farea'] ? 'checked="checked"' : '') . ' /> ' . $lng_set['field_on'] . '<br/>' . '<input name="preview" type="checkbox" value="1" ' . ($set_forum['preview'] ? 'checked="checked"' : '') . ' /> ' . $lng['preview'] . '<br/>' . '</p><p><h3>' . $lng_set['clip_first_post'] . '</h3>' . '<input type="radio" value="2" name="postclip" ' . ($set_forum['postclip'] == 2 ? 'checked="checked"' : '') . '/> ' . $lng_set['always'] . '<br />' . '<input type="radio" value="1" name="postclip" ' . ($set_forum['postclip'] == 1 ? 'checked="checked"' : '') . '/> ' . $lng_set['in_not_read'] . '<br />' . '<input type="radio" value="0" name="postclip" ' . (!$set_forum['postclip'] ? 'checked="checked"' : '') . '/> ' . $lng_set['never'] . '</p><p><input type="submit" name="submit" value="' . $lng['save'] . '"/></p></div></form>' . '<div class="phdr"><a href="profile.php?act=settings&mod=forum&reset">' . $lng['reset_settings'] . '</a></div>'; break; default: echo '<div class="phdr"><b>' . $lng['settings'] . '</b> | ' . $lng['common_settings'] . '</div>' . '<div class="topmenu">' . functions::display_menu($menu) . '</div>'; /* ----------------------------------------------------------------- Записываем новые настройки, заданные пользователем ----------------------------------------------------------------- */ if ($set_user['timeshift'] < -12) $set_user['timeshift'] = -12; elseif ($set_user['timeshift'] > 12) $set_user['timeshift'] = 12; if ($set_user['kmess'] < 5) $set_user['kmess'] = 5; elseif ($set_user['kmess'] > 99) $set_user['kmess'] = 99; if ($set_user['field_w'] < 10) $set_user['field_w'] = 10; elseif ($set_user['field_w'] > 80) $set_user['field_w'] = 80; if ($set_user['field_h'] < 1) $set_user['field_h'] = 1; elseif ($set_user['field_h'] > 9) $set_user['field_h'] = 9; // Устанавливаем скин // Устанавливаем язык $set_user['lng'] = $lng_select; } // Записываем настройки mysql_query("UPDATE `users` SET `set_user` = '" . mysql_real_escape_string(serialize($set_user)) . "' WHERE `id` = '$user_id'"); $_SESSION['set_ok'] = 1; exit; /* ----------------------------------------------------------------- Задаем настройки по-умолчанию ----------------------------------------------------------------- */ $_SESSION['reset_ok'] = 1; exit; } /* ----------------------------------------------------------------- Форма ввода пользовательских настроек ----------------------------------------------------------------- */ echo '<div class="rmenu">' . $lng['settings_saved'] . '</div>'; } echo '<div class="rmenu">' . $lng['settings_default'] . '</div>'; } echo '<form action="profile.php?act=settings" method="post" >' . '<div class="menu"><p><h3>' . $lng['settings_clock'] . '</h3>' . '<input type="text" name="timeshift" size="2" maxlength="3" value="' . core::$user_set['timeshift'] . '"/> ' . $lng['settings_clock_shift'] . ' (+-12)<br />' . '</p><p><h3>' . $lng['system_functions'] . '</h3>' . '<input name="direct_url" type="checkbox" value="1" ' . (core::$user_set['direct_url'] ? 'checked="checked"' : '') . ' /> ' . $lng['direct_url'] . ' (<font color="red">hafli</font>)<br />' . '<input name="avatar" type="checkbox" value="1" ' . (core::$user_set['avatar'] ? 'checked="checked"' : '') . ' /> ' . $lng['avatars'] . '<br/>' . '<input name="smileys" type="checkbox" value="1" ' . (core::$user_set['smileys'] ? 'checked="checked"' : '') . ' /> ' . $lng['smileys'] . '<br/>'; echo '<p><h3>Xizmat sozlamalari</h3></p>'; $online2 = mysql_result(mysql_query("SELECT `ulgamda` FROM `users` WHERE `id` = '" . $user_id . "'"), 0); if ($online2 == 1) { echo '<a href="../users/bot.php?id=' . $user['id'] . '">'.($user['bot']==1 ? 'Online bolmaslik' : 'Online bolish').'</a>'; }else{ echo 'Sayt dokoning bazi ximatlarini sozlash bolimi!'; } echo '</p><p><h3>' . $lng['text_input'] . '</h3>' . '<input type="text" name="field_h" size="2" maxlength="1" value="' . core::$user_set['field_h'] . '"/> ' . $lng['field_height'] . ' (1-9)<br />'; if (core::$lng_iso == 'ru' || core::$lng_iso == 'en') echo '<input name="translit" type="checkbox" value="1" ' . (core::$user_set['translit'] ? 'checked="checked"' : '') . ' /> ' . $lng['translit']; echo '</p><p><h3>' . $lng['apperance'] . '</h3>' . '<input type="text" name="kmess" size="2" maxlength="2" value="' . core::$user_set['kmess'] . '"/> ' . $lng['lines_on_page'] . ' (5-99)' . '</p>'; // Выбор темы оформления echo '<p><h3>' . $lng['design_template'] . '</h3><select name="skin">'; echo '<option' . (core::$user_set['skin'] == $theme ? ' selected="selected">' : '>') . $theme . '</option>'; } echo '</select></p>'; // Выбор языка echo '<p><h3>' . $lng['language_select'] . '</h3>'; foreach (core::$lng_list as $key => $val) { echo '<div><input type="radio" value="' . $key . '" name="iso" ' . ($key == $user_lng ? 'checked="checked"' : '') . '/> ' . (file_exists('../images/flags/' . $key . '.gif') ? '<img src="../images/flags/' . $key . '.gif" alt=""/> ' : '') . $val . ($key == core::$system_set['lng'] ? ' <small class="red">[' . $lng['default'] . ']</small>' : '') . '</div>'; } echo '</p>'; } echo '<p><input type="submit" name="submit" value="' . $lng['save'] . '"/></p></div></form>' . '<div class="phdr"><a href="profile.php?act=settings&reset">' . $lng['reset_settings'] . '</a></div>'; }
Eslatma: bu kodni ishlash uchun, sizning JohnCMS skriptingizda bot modili ulangan bolishi kerak, bolasa ishlamaydi!
40 kun 22 soat 7 daqiqa 25 soniyadan keyin yozdi:
Salom dostlar! JohnCMS uchun profile.php, aziz forumdoshlar bilan ulashmoqchiman.
Ammo avvalidan aytaman, bazi kodlar sizda ishlamasligi mumkun(telegram profile v.h.k):
<?php /** * @package JohnCMS * @link http://johncms.com * @copyright Copyright (C) 2008-2011 JohnCMS Community * @license LICENSE.txt (see attached file) * @version VERSION.txt (see attached file) * @author http://johncms.com/about */ require('../incfiles/core.php'); $lng_profile = core::load_lng('profile'); /* ----------------------------------------------------------------- Закрываем от неавторизованных юзеров ----------------------------------------------------------------- */ if (!$user_id) { require('../incfiles/head.php'); echo functions::display_error('<big><b>Ulanyjynyň profiline girmek üçin <a href="../registration.php">Agza bol</a>mak şertdir!</b></big>'); require('../incfiles/end.php'); exit; } /* ----------------------------------------------------------------- Получаем данные пользователя ----------------------------------------------------------------- */ $user = functions::get_user($user); if (!$user) { require('../incfiles/head.php'); echo functions::display_error($lng['user_does_not_exist']); require('../incfiles/end.php'); exit; } /* ----------------------------------------------------------------- Переключаем режимы работы ----------------------------------------------------------------- */ 'activity' => 'includes/profile', 'ban' => 'includes/profile', 'edit' => 'includes/profile', 'images' => 'includes/profile', 'info' => 'includes/profile', 'ip' => 'includes/profile', 'guestbook' => 'includes/profile', 'karma' => 'includes/profile', 'office' => 'includes/profile', 'password' => 'includes/profile', 'reset' => 'includes/profile', 'settings' => 'includes/profile', 'stat' => 'includes/profile', 'friends' => 'includes/profile' ); require_once($path . $act . '.php'); } else { /* ----------------------------------------------------------------- Анкета пользователя ----------------------------------------------------------------- */ function calc_age($d, $m, $y) { $age--; return $age; } 1 => 'Ýanwar', 2 => 'Fewral', 3 => 'Mart', 4 => 'Aprel', 5 => 'Maý', 6 => 'Iýun', 7 => 'Iýul', 8 => 'Awgust', 9 => 'Sentýabr', 10 => 'Oktýabr', 11 => 'Noýabr', 12 => 'Dekabr', ); $user_age = calc_age($user['dayb'], $user['monthb'], $user['yearofbirth']); $headmod = 'profile,' . $user['id']; if ($user['id'] != $user_id) { }else{ } require('../incfiles/head.php'); echo '<div class="phdr"><b>' . ($user['id'] != $user_id ? $lng_profile['user_profile'] : $lng_profile['my_profile']) . '</b></div>'; if ($hasapp['hasap']==0){ require_once('closed.php'); } // Меню анкеты if ($user['id'] == $user_id || $rights == 9 || ($rights == 7 && $rights > $user['rights'])) { $menu[] = '<a href="profile.php?act=edit&user=' . $user['id'] . '">' . $lng['edit'] . '</a>'; } if ($user['id'] != $user_id && $rights >= 7 && $rights > $user['rights']) { $menu[] = '<a href="' . $set['homeurl'] . '/' . $set['admp'] . '/index.php?act=usr_del&id=' . $user['id'] . '">' . $lng['delete'] . '</a>'; } if ($user['id'] != $user_id && $rights > $user['rights']) { $menu[] = '<a href="profile.php?act=ban&mod=do&user=' . $user['id'] . '">' . $lng['ban_do'] . '</a>'; } echo '<div class="topmenu">' . functions::display_menu($menu) . '</div>'; } //Уведомление о дне рожденья echo '<div class="gmenu">' . $lng['birthday'] . '!!!</div>'; } // Информация о юзере 'lastvisit' => 1, 'iphist' => 1, 'header' => '<b>ID:' . $user['id'] . '</b>' ); if ($user['id'] != core::$user_id) { $arg['footer'] = '<span class="gray">' . core::$lng['where'] . ':</span> ' . functions::display_place($user['id'], $user['place']); } echo '<div class="p_m"><p>' . functions::display_user($user, $arg) . '</p></div>'; // Если юзер ожидает подтверждения регистрации, выводим напоминание echo '<div class="rmenu">' . $lng_profile['awaiting_registration'] . '</div>'; } echo '<big>'; if ($user['id'] != $user_id) { if ($totalmy > '0'){ $s_domen = mysql_result(mysql_query("SELECT `nik` FROM `niksalgy` WHERE (`user_id` = '".$user['id']."')"), 0); $link_s_view = '<div class="menu">@nik salgy:<br /><b><a href="'.$home.'/@'.$s_domen.'">'.$home.'/@'.$s_domen.'</a></b></div>'; } echo $link_s_view; }else{ if ($totalmy > '0'){ $s_domen = mysql_result(mysql_query("SELECT `nik` FROM `niksalgy` WHERE (`user_id` = '".$user['id']."')"), 0); $link_s_view = '<div class="menu">@nik salgym:<br /><b><a href="'.$home.'/@'.$s_domen.'">'.$home.'/@'.$s_domen.'</a></b></div>'; } echo $link_s_view; } echo '</big>'; // Меню выбора if ($user['id'] != $user_id) { echo '<div class="menu"><p><a class="but" href="../mail/index.php?act=write&id=' . $user['id'] . '" >Shaxsiy habar yozish</a></p></div>'; } } else { echo '<div class="menu"><p><a class="but" href="../mail/index.php?act=input">Shaxsiy habarlar</a><p></div>'; } $u_med = mysql_result(mysql_query("select count(*) from `medal_users` where `id_user` = '".$user['id']."'"),0); // dereje $v2 = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_votte` WHERE `kimga` = '".$user['id']."' AND `votte`='1'"),0); $v4 = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_votte` WHERE `kimga` = '".$user['id']."' AND `votte`='2'"),0); $r = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_rahmat` WHERE `kimga` = '".$user['id']."'"),0); $v5 = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_mavzu` WHERE `kimga` = '".$user['id']."' AND `javob`='2'"),0); $v6 = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_mavzu` WHERE `kimga` = '".$user['id']."' AND `javob`='1'"),0); $f=$v2+$r-$v4+$v6-$v5; if($f>=-100 && $f<=50){ $u_dereje = '<span class= "badge-status" style="background: yellow; color: blue; padding: 0px 2px 0px 2px; font-weight: bold; border-radius: 6px;">Täzeje</span>'; } if($f>=51 && $f<=100){ $u_dereje = '<span class= "badge-status" style="background: yellow; color: blue; padding: 0px 2px 0px 2px; font-weight: bold; border-radius: 6px;">Öwreniji</span>'; } if($f>=101 && $f<=300){ $u_dereje = '<span class= "badge-status" style="background: yellow; color: blue; padding: 0px 2px 0px 2px; font-weight: bold; border-radius: 6px;">Özümiziňki</span>'; } if($f>=301 && $f<=500){ $u_dereje = '<span class= "badge-status" style="background: yellow; color: blue; padding: 0px 2px 0px 2px; font-weight: bold; border-radius: 6px;">Gerekli</span>'; } if($f>=501 && $f<=1000){ $u_dereje = '<span class= "badge-status" style="background: yellow; color: blue; padding: 0px 2px 0px 2px; font-weight: bold; border-radius: 6px;">Gytyndan</span>'; } if($f>=1001 && $f<=3000){ $u_dereje = '<span class= "badge-status" style="background: yellow; color: blue; padding: 0px 2px 0px 2px; font-weight: bold; border-radius: 6px;">Betinden</span>'; } if($f>=3001 && $f<=5000){ $u_dereje = '<span class= "badge-status" style="background: yellow; color: blue; padding: 0px 2px 0px 2px; font-weight: bold; border-radius: 6px;">Hakyky dost</span>'; } if($f>=5001 && $f<=10000){ $u_dereje = '<span class= "badge-status" style="background: yellow; color: blue; padding: 0px 2px 0px 2px; font-weight: bold; border-radius: 6px;">Ýaşuly</span>'; } if($f>=10000 && $f<=50000){ $u_dereje = '<span class="brown">ViP agza</span>'; } echo ' <div class="menu"> <span style="color: gray;">Haqiqi nomi:</span> <b>'.$user['imname'].'</b></br> <span style="color: gray;">Tugilan kuni:</span> <b>' . $user['dayb'] . '-' . $ranki[$user['monthb']] . ' ' . $user['yearofbirth'] . '-yil, '.$user_age.'-yosh</b></br> <span style="color: gray;">Yashash joyi:</span> <b>'.$user['live'].'</a></b><br/> <span style="color: gray;">Saytda bolgan vaqt:</span> <b>'; function timespisok($var) { $str = ''; if ($var < 0) $var = 0; if ($var > 2592000) { $str = '<b>'.$day .'</b> kun'; } elseif ($var >= 432000) { $str = '<b>'.$day . '</b> kun'; } elseif ($var >= 172800) { $str = '<b>'.$day . '</b> kun'; } elseif ($var >= 86400) { $str = '<b>1</b> kun'; } return $str; } echo ' ' . timespisok($user['total_on_site']) . ''; echo '</b><br /> <span style="color: gray;">Profil ID raqami:</span> <b>'.$user['id'].'</b><br /> <span style="color: gray;">Forumdagi darajasi:</span> <b>'.$u_dereje.'</b> <br /> <span style="color: gray;">Songi tashrifi:</span> <b>' . $lastvisit . '</b><br /> <span style="color: gray;">Azo bolgan vaqt:</span> <b>' . date("d.m.Y", $user['datereg']) . '</b><br/>'; if ($user['id'] != $user_id) { }else{ echo '<img src="../images/2.png" style="margin-bottom: -2px; width: 14px;" alt="*"/> <a href="../users/profile.php?act=edit">Shaxsiy malumotlarni ozgartirish</a><br/> <img src="../images/2.png" style="margin-bottom: -2px; width: 14px;" alt="*"/> <a href="../users/profile.php?act=password">Kalit sozni ozgartirish</a><br/> <img src="../images/2.png" style="margin-bottom: -2px; width: 14px;" alt="*"/> <a href="../users/profile.php?act=settings">Shaxsiy sozlamalar</a></br> <img src="../images/2.png" style="margin-bottom: -2px; width: 14px;" alt="*"/> <a href="/forum/index.php?act=men_halan">Yoqtirilgan mavzular</a><br/> <img src="../images/2.png" style="margin-bottom: -2px; width: 14px;" alt="*"/> <a href="../profile.php?act=telegram">Telegram profil</a><br/> <img src="../images/2.png" style="margin-bottom: -2px; width: 14px;" alt="*"/> <a href="../pages/pay.php">Hisobni toldirish</a><br/>'; } echo ' </div>'; if ($u_med) { echo ' <div class="menu"> <b>Foydalanuvchi medallari:</b><br> Medallari: <b>'.$u_med.'</b>'; $req = mysql_query("select `medals`.*,`medal_users`.`id_who`,`medal_users`.`time` as `givetime`, `users`.`name` as `nick` from `medals` left join `users` on `medals`.`user_id` = `users`.`id` left join `medal_users` on `medal_users`.`id_medal` = `medals`.`id` where `medal_users`.`id_user` = '".$user['id']."' order by `medal_users`.`time` desc limit 3"); echo '<br> <img src="../medal/img/' .functions::checkout($res['img']). '.jpg" alt="Medal" title="Medal" height="50"/></span>'; } echo ' <br /><a href="../medal/index.php?id=' . $user['id'] . '">toliq...</a></div>'; } $h = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_rahmat` WHERE `user_id` = '".$user['id']."'"),0); $r = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_rahmat` WHERE `kimga` = '".$user['id']."'"),0); $v1 = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_votte` WHERE `user_id` = '".$user['id']."' AND `votte`='1'"),0); $v2 = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_votte` WHERE `kimga` = '".$user['id']."' AND `votte`='1'"),0); $v3 = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_votte` WHERE `user_id` = '".$user['id']."' AND `votte`='2'"),0); $v4 = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_votte` WHERE `kimga` = '".$user['id']."' AND `votte`='2'"),0); echo ' <div class="menu"> <span style="color: gray;">Balans:</span> <b>'.$user['manat'].'</b><br /> <span style="color: gray;">Ballari:</span> <b>'.$user['balans'].'</b> point.<br /> </div> <div class="menu"> <span style="color: gray;">Yozgan mavzulari:</span> <a href="../users/profile.php?act=activity&mod=topic&user='.$user['id'].'"><b>'.$user['postmow'].'</b></a> sany '; if ($user['id'] != $user_id) { $yzarlamak = mysql_query("SELECT * FROM `user_yzarla` WHERE `user`='" . $user_id . "' AND `to`='" . $user['id'] . "';"); if ($lu88 != 1){ echo "<a href='../yzarlamak/index.php?act=goshmak&id=" . $user['id'] . "'><b>Foydalanuvchiga abuna bolish</b></a>"; }else{ echo "<a href='../yzarlamak/index.php?act=bozmak&id=" . $user['id'] . "'><b><span class='red'>Abunani bekor qilish</span></b></a>"; }} echo '<br/> <span style="color: gray;">Forumdagi postlar:</span> <b><a href="../users/profile.php?act=activity&user='.$user['id'].'">'.$user['postforum'].'</a></b> sany<br/> <span style="color: gray;">Chadagi xabarlar:</span> <b><a href="../pikirler/index.php">'.$user['postchat'].'</a></b> sany </div> <div class="menu"> <span style="color: gray;">Raxmat aytdi:</span> <b>'.$h.'</b> gezek<div class="br"></div> <span style="color: gray;">Raxmat aytishdi:</span> <b>'.$r.'</b> gezek<div class="br"></div> </div>'; // dereje $fm5 = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_mavzu` WHERE `kimga` = '".$user['id']."' AND `javob`='2'"),0); $fm6 = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_mavzu` WHERE `kimga` = '".$user['id']."' AND `javob`='1'"),0); $f=$fm5-$fm6; // 50 if($f>=0 && $f<=10)$dereje=0; elseif($f>=11 && $f<=20)$dereje=2; elseif($f>=21 && $f<=35)$dereje=3; elseif($f>=36 && $f<=40)$dereje=4; elseif($f>=41 && $f<=45)$dereje=5; elseif($f>=46 && $f<=55)$dereje=6; elseif($f>=56 && $f<=60)$dereje=7; elseif($f>=61 && $f<=65)$dereje=8; elseif($f>=66 && $f<=75)$dereje=9; elseif($f>=76 && $f<=80)$dereje=10; elseif($f>=81 && $f<=90)$dereje = 11; elseif($f>=91 && $f<=100)$dereje = 12; elseif($f>=101 && $f<=120)$dereje = 13; elseif($f>=121 && $f<=130)$dereje = 14; elseif($f>=131 && $f<=140)$dereje = 15; elseif($f>=141 && $f<=150)$dereje = 16; elseif($f>=151 && $f<=160)$dereje = 17; elseif($f>=161 && $f<=170)$dereje = 18; elseif($f>=171 && $f<=180)$dereje = 19; elseif($f>=181 && $f<=190)$dereje = 20; elseif($f>=191 && $f<=200)$dereje = 21; elseif($f>=201 && $f<=220)$dereje = 22; elseif($f>=221 && $f<=240)$dereje = 23; elseif($f>=241 && $f<=260)$dereje = 24; elseif($f>=261 && $f<=280)$dereje = 25; elseif($f>=281 && $f<=300)$dereje = 26; elseif($f>=301 && $f<=330)$dereje = 27; elseif($f>=331 && $f<=360)$dereje = 28; elseif($f>=361 && $f<=390)$dereje = 29; elseif($f>=391 && $f<=400)$dereje = 30; elseif($f>=401 && $f<=440)$dereje = 31; elseif($f>=441 && $f<=480)$dereje = 32; elseif($f>=481 && $f<=500)$dereje = 33; elseif($f>=501 && $f<=540)$dereje = 34; elseif($f>=541 && $f<=570)$dereje = 35; elseif($f>=571 && $f<=600)$dereje = 36; elseif($f>=601 && $f<=730)$dereje = 37; elseif($f>=731 && $f<=770)$dereje = 38; elseif($f>=771 && $f<=790)$dereje = 39; elseif($f>=791 && $f<=800)$dereje = 40; elseif($f>=801 && $f<=910)$dereje = 41; elseif($f>=911 && $f<=920)$dereje = 42; elseif($f>=921 && $f<=930)$dereje = 43; elseif($f>=931 && $f<=945)$dereje = 44; elseif($f>=946 && $f<=950)$dereje = 45; elseif($f>=951 && $f<=960)$dereje = 46; elseif($f>=961 && $f<=970)$dereje = 47; elseif($f>=971 && $f<=980)$dereje = 48; elseif($f>=981 && $f<=990)$dereje = 49; elseif($f>=991 && $f<=1000)$dereje = 50; elseif($f>=1001 && $f<=1050)$dereje = 51; elseif($f>=1051 && $f<=1100)$dereje = 52; elseif($f>=1101 && $f<=1200)$dereje = 53; elseif($f>=1201 && $f<=1300)$dereje = 54; elseif($f>=1301 && $f<=1350)$dereje = 55; elseif($f>=1351 && $f<=1400)$dereje = 56; elseif($f>=1401 && $f<=1450)$dereje = 57; elseif($f>=1451 && $f<=1500)$dereje = 58; elseif($f>=1501 && $f<=1600)$dereje = 59; elseif($f>=1601 && $f<=1700)$dereje = 60; elseif($f>=1701 && $f<=1800)$dereje = 61; elseif($f>=1801 && $f<=1900)$dereje = 62; elseif($f>=1901 && $f<=2000)$dereje = 63; elseif($f>=2001 && $f<=2200)$dereje = 64; elseif($f>=2201 && $f<=2300)$dereje = 65; elseif($f>=2301 && $f<=2400)$dereje = 66; elseif($f>=2401 && $f<=2500)$dereje = 67; elseif($f>=2501 && $f<=2600)$dereje = 68; elseif($f>=2601 && $f<=2700)$dereje = 69; elseif($f>=2701 && $f<=2800)$dereje = 70; elseif($f>=2801 && $f<=2900)$dereje = 71; elseif($f>=2901 && $f<=3000)$dereje = 72; elseif($f>=3001 && $f<=3300)$dereje = 73; elseif($f>=3301 && $f<=3500)$dereje = 74; elseif($f>=3501 && $f<=3700)$dereje = 75; elseif($f>=3701 && $f<=3900)$dereje = 76; elseif($f>=3901 && $f<=4000)$dereje = 77; elseif($f>=4001 && $f<=4400)$dereje = 78; elseif($f>=4401 && $f<=5000)$dereje = 79; elseif($f>=5001 && $f<=5300)$dereje = 80; elseif($f>=5301 && $f<=5600)$dereje = 81; elseif($f>=5601 && $f<=5900)$dereje = 82; elseif($f>=5901 && $f<=6000)$dereje = 83; elseif($f>=6001 && $f<=6600)$dereje = 84; elseif($f>=6601 && $f<=7000)$dereje = 85; elseif($f>=7001 && $f<=7200)$dereje = 86; elseif($f>=7401 && $f<=7400)$dereje = 87; elseif($f>=7401 && $f<=7600)$dereje = 88; elseif($f>=7601 && $f<=8400)$dereje = 89; elseif($f>=8401 && $f<=8600)$dereje = 90; elseif($f>=8601 && $f<=8900)$dereje = 91; elseif($f>=8901 && $f<=9000)$dereje = 92; elseif($f>=9001 && $f<=9200)$dereje = 93; elseif($f>=9201 && $f<=9300)$dereje = 94; elseif($f>=9301 && $f<=9400)$dereje = 95; elseif($f>=9401 && $f<=9500)$dereje = 96; elseif($f>=9501 && $f<=9700)$dereje = 97; elseif($f>=9701 && $f<=9900)$dereje = 98; elseif($f>=9901 && $f<=10000)$dereje = 99; elseif($f>=10001 && $f<=50000)$dereje = 100; echo '<div class="menu">Foydali mavzular: ' . $dereje . '%<br/> <div style="background-color: red; border-radius: 50px 50px 50px 50px; width: 250px; height: 15px;"><div style="background-color: LightGreen; border-radius: 50px 50px 50px 50px; height:15px; width:' . $dereje . '%;"></div><span style="position:relative; top:-17px; left:45%; right:57%; color:blue;"><b></b></span></div> </div>'; echo ' <div class="menu"> <span style="color: gray;"><font color="green">Plus</font> bosdi:</span> <b>'.$v1.'</b> gezek<div class="br"></div> <span style="color: gray;"><font color="green">Plus</font> bosishdi:</span> <b>'.$v2.'</b> gezek<div class="br"></div> <span style="color: gray;"><font color="red">Minus</font> bosdi:</span> <b>'.$v3.'</b> gezek<div class="br"></div> <span style="color: gray;"><font color="red">Minus</font> bosishdi:</span> <b>'.$v4.'</b> gezek<div class="br"></div> </div>'; $licka = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_contact` WHERE `user_id`='" . $user_id . "' AND `ban`!='1'"), 0); $pmyh = @mysql_result(@mysql_query("SELECT COUNT(*) FROM `my_guests` WHERE `my_id` = '" . $user_id . "';"), 0); $aphoto = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_album_files` WHERE `user_id` = '" . $user['id'] . "'"), 0); $bancount = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_ban_users` WHERE `user_id` = '" . $user['id'] . "'"), 0); if ($bancount) { echo '<div class="menu"><a href="profile.php?act=ban&user=' . $user['id'] . '">Qoiydabuzarliklar</a> <b>(' . $bancount . ')</b></div>'; } if ($user['id'] != $user_id) { }else{ echo '<div class="menu"> <img src="../images/2.png" style="margin-bottom: -2px; width: 14px;" alt="*"/> <a href="../mail/index.php">Saxsiy xabarlar</a> ('.$licka.')<br/> <img src="../images/2.png" style="margin-bottom: -2px; width: 14px;" alt="*"/> <a href="../users/profile.php?act=photo&user='.$user['id'].'">Fotoalbom</a> ('.$aphoto.')<br/> <img src="../images/2.png" style="margin-bottom: -2px; width: 14px;" alt="*"/> <a href="../users/guests.php">Profilim mehmonlari</a> ('.$pmyh.')<br/> <img src="../images/2.png" style="margin-bottom: -2px; width: 14px;" alt="*"/> <a href="../shop/index.php">Forum dokoni</a> (3)<br/> <img src="../images/2.png" style="margin-bottom: -2px; width: 14px;" alt="*"/> <a href="../exit.php">Saytdan chiqish</a> </div>'; } if($rights==9) { echo '<div class="topmenu"><a href="bot.php?id=' . $user['id'] . '">'.($user['bot']==1 ? 'Bot ochirish' : 'Bot yoqish').'</a> | '; } if ($rights >= 7){ echo '<a href="../medal/panel.php?id=' . $user['id'] . '">Medal berish</a></div>'; } require_once('../incfiles/end.php');
JohnCMS uchun kod kerak bolsa yasab beraman!
40 kun 22 soat 9 daqiqa 18 soniyadan keyin yozdi:
Hurmatli dostlar yaqinda @nik(sahifa manzili) kodining taqomillashganini tarqataman!
.htaccess orqali tuzulganini!
+ (1): We-Pro,
Assalomualeykum dostlar! Xuddi xozir https://mmuzon.ru saytimning skriptini bepul tarqatmoqchiman!
Agar foydasi tegsa [+]
Agar foydasi tegsa [+]
Biriktirilgan fayllar [1]:
— mmuzon_ru.zip (5024.85 KB) (153 ↴)
— mmuzon_ru.zip (5024.85 KB) (153 ↴)
ZET-PRO2003, # ZET-PRO2003 (24.11.2019 / 19:33)
Enrique, ha shunday. WTF nima u?? Kani polni yozingche...
5 daqiqa 27 soniyadan keyin yozdi:
Mana yanada bitda foyldaliroq kod
Bu kod orqali bosh sahifaga 3-ta, 3 gal va undan kop Kerakli mavAdashni o'rniga o'zim javob bera qolay. FTW Ozgina ketma-ketlikda xato. FTW - bu veb lug'atdagi bir so'z. FTW "G'oliblik uchun" degan ma'noni anglatadi. FTW "eng yaxshisi" yoki "bu element katta farq qiladi" degan ma'noda ham keladi. Agar ketma-ketlikda adashgan bo'lsam uzur
Enrique, ha shunday. WTF nima u?? Kani polni yozingche...
5 daqiqa 27 soniyadan keyin yozdi:
Mana yanada bitda foyldaliroq kod
Bu kod orqali bosh sahifaga 3-ta, 3 gal va undan kop Kerakli mavAdashni o'rniga o'zim javob bera qolay. FTW Ozgina ketma-ketlikda xato. FTW - bu veb lug'atdagi bir so'z. FTW "G'oliblik uchun" degan ma'noni anglatadi. FTW "eng yaxshisi" yoki "bu element katta farq qiladi" degan ma'noda ham keladi. Agar ketma-ketlikda adashgan bo'lsam uzur
ZET-PRO2003, # ZET-PRO2003 (24.04.2020 / 20:49)
Assalomualeykum dostlar! Xuddi xozir https://mmuzon.ru saytimning skriptini bepul tarqatmoqchiman!
Agar foydasi tegsa [+]Qaysi CMS da tuzulgan?
Assalomualeykum dostlar! Xuddi xozir https://mmuzon.ru saytimning skriptini bepul tarqatmoqchiman!
Agar foydasi tegsa [+]Qaysi CMS da tuzulgan?
Enrique, # Enrique (24.11.2019 / 19:28)
Exe siz sahifaga manzil yasash uchun sayt korenida har bir user uchun alohida papka yaratyabsizmi?
WTF????Aka, man oshandan keyin 5-6 kunda .htaccess bilan yozilgan @nik modini yozdim ammo, kompimga windows almashtiranimda ochibti, agar vaqt topsam osha kodni xam yozib forumdoshlarga ulashaman
Exe siz sahifaga manzil yasash uchun sayt korenida har bir user uchun alohida papka yaratyabsizmi?
WTF????Aka, man oshandan keyin 5-6 kunda .htaccess bilan yozilgan @nik modini yozdim ammo, kompimga windows almashtiranimda ochibti, agar vaqt topsam osha kodni xam yozib forumdoshlarga ulashaman
Kamron, # Kamron (24.04.2020 / 20:59)
ZET-PRO2003, Qaysi CMS da tuzulgan?JohnCMS-da, arxiv ichida Readme.txt fayil bor, ornatish uchun.
Shu joyda aytib otaman dostlar, skript tili faqat tm-da yozilgan, ammo tarjima qilishda yordam berishim mumkun yoqi, google translatedan foydalaning, yoqi php mysql ga tushunsazi oziz bilasiz nima qilishni
ZET-PRO2003, Qaysi CMS da tuzulgan?JohnCMS-da, arxiv ichida Readme.txt fayil bor, ornatish uchun.
Shu joyda aytib otaman dostlar, skript tili faqat tm-da yozilgan, ammo tarjima qilishda yordam berishim mumkun yoqi, google translatedan foydalaning, yoqi php mysql ga tushunsazi oziz bilasiz nima qilishni
ZET-PRO2003, # ZET-PRO2003 (24.04.2020 / 20:59)
Enrique, Aka, man oshandan keyin 5-6 kunda .htaccess bilan yozilgan @nik modini yozdim ammo, kompimga windows almashtiranimda ochibti, agar vaqt topsam osha kodni xam yozib forumdoshlarga ulashaman6 kun view.php?act=post&id=83984
Enrique, Aka, man oshandan keyin 5-6 kunda .htaccess bilan yozilgan @nik modini yozdim ammo, kompimga windows almashtiranimda ochibti, agar vaqt topsam osha kodni xam yozib forumdoshlarga ulashaman6 kun view.php?act=post&id=83984
Tavsiya etamiz:
- Hoziroq maydonlarni to'ldiring va reklamangizni joylashtiring!
Mavzuga oid xabarlar soni: 10 ta
So'ngi faollik vaqti: 22:54:59, 24 Apr 2020