Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=50904
Postga havola
DjHuSo [843] [off]
WaP_MaSTeR, bunibazaga yuboring:
incfiles\classes\functions.php failga uzsers ma'lumotlari chiqaradigan joyiga buni yozasiz!
bu esa nik ranginio'zgartirish uchun php
Xatosi bo'sa aytarsiz!
ALTER TABLE `users` ADD `nikfon` VARCHAR( 11 ) NOT NULL;
incfiles\classes\functions.php failga uzsers ma'lumotlari chiqaradigan joyiga buni yozasiz!
$cfon = $clr['nikfon']; $out .= !self::$user_id || self::$user_id == $user['id'] ? '<span style="background:'.$cfon.';border-radius:8px 0px 8px 0px;padding:3px 5px 2px 5px;"><b>' . $user['name'] . '</b></span>' : '<a href="' . self::$system_set['homeurl'] . '/users/profile.php?user=' . $user['id'] . '"><span style="background:'.$cfon.';border-radius:8px 0px 8px 0px;padding:3px 5px 2px 5px;"><b>' . $user['name'] . '</b></span></a>';
bu esa nik ranginio'zgartirish uchun php
<?php $headmod = 'color'; $textl = 'Nik fonini o\'zgartirish'; require ("../incfiles/core.php"); require ("../incfiles/head.php"); echo '<div class="phdr">Onlay do`kon | Nik Foni</div>'; // Narxi $a = '500'; $error = false; // Проверка кода CAPTCHA $error = $error . 'Rasmdagi kod kiritilmadi!<br />'; elseif ($kod != $_SESSION['code']) $error = $error . 'Rasmdagi kod xato!<br />'; $error = $error . 'Rangni kiritmadingiz!<br />'; $error = 'Rang nomi xato!<br/>'; if ($datauser['balans'] < $a) { $error = 'Ball yetarli emas!<br/>'; } } mysql_query("UPDATE `users` SET `balans` = '" . ($datauser['balans'] - $a) . "', `nikfon` = '" . mysql_real_escape_string($clr) . "' WHERE `id` = '$user_id'"); echo '<div class="gmenu">Tabriklaymiz Nikingizning foni o\'zgartirildi!<br/>'; echo 'Nikingiz: <span style="background:'.$clr.';border-radius:8px 0px 8px 0px;padding:3px 5px 2px 5px;">'.$datauser['name'].'</span>'; echo '<br/><a href="/users/profile.php">anketaga</a>'; echo '</div>'; } else { echo '<div class="rmenu"><p><b>XATO!</b><br />' . $error . '</p></div>'; } } else { echo '<div class="list2"><b>'.$login.'</b>, Bu yerda siz Nikingizning fonini o\'zgartirasiz.<br/>Narxi: '.$a.' ball</div>'; echo '<form action="" method="post"><div class="list1">'; echo '<p>'.(strlen($datauser['nikfon']) == 1 ? '<b>Rang:</b>' : '<font color="'.$datauser['nikfon'].'"><b>Rang:</b></font>').'<br/><input type="text" name="color" maxlength="25" value="'.$datauser['nikfon'].'" /><br/><small>Masalan #000000 qilib yozasiz. Bunda nikingiz foni qora rangda bo`ladi.<br/><font color="red">Kod yozishning turlari bor masalan НЕ va RGB yana HTML kodlari! Agar boshqa ranglarding yozilishini bilmasangiz pasdagi Ranglar javdaliga kiring va har xil ranglarning yozilishini bilib oling</font></small><br/><a href="/dokon/rang.php"><font color="0000ff">Ranglar javdali</font></a></p></div>'; echo '<div class="gmenu"><p><img src="/captcha.php?r=' . rand(1000, 9999) . '" alt="TEST kodi" border="1"/><br />'; echo 'Rasmdagi kodni kiriting:<br/><input type="text" size="5" maxlength="5" name="kod"/></p></div>'; echo '<div class="list2"><input type="submit" name="submit" value="O\'zgartirish"/></div></form>'; } require ("../incfiles/end.php"); ?>
Xatosi bo'sa aytarsiz!