Flags for Znote 1.5 reworked
Reworked flags for Znote 1.5 by not altering the tfs tables
@ -5,15 +5,18 @@ if ($config['log_ip']) {
|
||||
if (isset($_GET['name']) === true && empty($_GET['name']) === false) {
|
||||
$name = $_GET['name'];
|
||||
$user_id = user_character_exist($name);
|
||||
|
||||
if ($user_id !== false) {
|
||||
|
||||
if ($config['TFSVersion'] == 'TFS_10') {
|
||||
$profile_data = user_character_data($user_id, 'name', 'level', 'vocation', 'lastlogin', 'sex');
|
||||
$profile_data = user_character_data($user_id, 'account_id', 'name', 'level', 'vocation', 'lastlogin', 'sex');
|
||||
$profile_data['online'] = user_is_online_10($user_id);
|
||||
if ($config['Ach'] == true) {
|
||||
$achievementPoints = mysql_select_single("SELECT SUM(`value`) AS `sum` FROM `player_storage` WHERE `key` LIKE '30___' AND `player_id`='$user_id'");
|
||||
}
|
||||
} else $profile_data = user_character_data($user_id, 'name', 'level', 'vocation', 'lastlogin', 'online', 'sex');
|
||||
} else $profile_data = user_character_data($user_id, 'account_id', 'name', 'level', 'vocation', 'lastlogin', 'online', 'sex');
|
||||
$profile_znote_data = user_znote_character_data($user_id, 'created', 'hide_char', 'comment');
|
||||
$account_data = user_znote_account_data($profile_data['account_id'], 'flag');
|
||||
|
||||
$guild_exist = false;
|
||||
if (get_character_guild_rank($user_id) > 0) {
|
||||
@ -27,7 +30,7 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) {
|
||||
<!-- PROFILE MARKUP HERE-->
|
||||
<h1><font class="profile_font" name="profile_font_header">Profile: <?php echo $profile_data['name']; ?></font></h1>
|
||||
<ul class="unstyled">
|
||||
|
||||
<li><font class="profile_font" name="profile_font_country">Country: <?php echo '<img src="\flags\\' . $account_data['flag'] . '.png">'; ?></font></li>
|
||||
<li><font class="profile_font" name="profile_font_level">Sex:<?php
|
||||
if ($profile_data['sex'] == 1) {
|
||||
echo 'Male';
|
||||
|
@ -32,6 +32,7 @@ CREATE TABLE IF NOT EXISTS `znote_accounts` (
|
||||
`cooldown` int(10) DEFAULT 0,
|
||||
`active` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`activekey` int(11) NOT NULL,
|
||||
`flag` varchar(20) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
|
||||
|
||||
|
@ -1088,9 +1088,11 @@ function user_create_account($register_data, $maildata) {
|
||||
|
||||
$ip = $register_data['ip'];
|
||||
$created = $register_data['created'];
|
||||
$flag = $register_data['flag'];
|
||||
|
||||
unset($register_data['ip']);
|
||||
unset($register_data['created']);
|
||||
unset($register_data['flag']);
|
||||
|
||||
if (config('TFSVersion') == 'TFS_10') $register_data['creation'] = $created;
|
||||
|
||||
@ -1101,7 +1103,7 @@ function user_create_account($register_data, $maildata) {
|
||||
|
||||
$account_id = user_id($register_data['name']);
|
||||
$activeKey = rand(100000000,999999999);
|
||||
mysql_insert("INSERT INTO `znote_accounts` (`account_id`, `ip`, `created`, `activekey`) VALUES ('$account_id', '$ip', '$created', '$activeKey')");
|
||||
mysql_insert("INSERT INTO `znote_accounts` (`account_id`, `ip`, `created`, `activekey`, `flag`) VALUES ('$account_id', '$ip', '$created', '$activeKey', '$flag')");
|
||||
|
||||
if ($maildata['register']) {
|
||||
|
||||
|
BIN
flags/ad.png
Normal file
After Width: | Height: | Size: 761 B |
BIN
flags/ae.png
Normal file
After Width: | Height: | Size: 518 B |
BIN
flags/af.png
Normal file
After Width: | Height: | Size: 688 B |
BIN
flags/ag.png
Normal file
After Width: | Height: | Size: 880 B |
BIN
flags/ai.png
Normal file
After Width: | Height: | Size: 862 B |
BIN
flags/al.png
Normal file
After Width: | Height: | Size: 770 B |
BIN
flags/am.png
Normal file
After Width: | Height: | Size: 596 B |
BIN
flags/an.png
Normal file
After Width: | Height: | Size: 650 B |
BIN
flags/ao.png
Normal file
After Width: | Height: | Size: 809 B |
BIN
flags/aq.png
Normal file
After Width: | Height: | Size: 836 B |
BIN
flags/ar.png
Normal file
After Width: | Height: | Size: 708 B |
BIN
flags/as.png
Normal file
After Width: | Height: | Size: 806 B |
BIN
flags/at.png
Normal file
After Width: | Height: | Size: 505 B |
BIN
flags/au.png
Normal file
After Width: | Height: | Size: 877 B |
BIN
flags/aw.png
Normal file
After Width: | Height: | Size: 722 B |
BIN
flags/ax.png
Normal file
After Width: | Height: | Size: 718 B |
BIN
flags/az.png
Normal file
After Width: | Height: | Size: 834 B |
BIN
flags/ba.png
Normal file
After Width: | Height: | Size: 741 B |
BIN
flags/bb.png
Normal file
After Width: | Height: | Size: 813 B |
BIN
flags/bd.png
Normal file
After Width: | Height: | Size: 817 B |
BIN
flags/be.png
Normal file
After Width: | Height: | Size: 548 B |
BIN
flags/bf.png
Normal file
After Width: | Height: | Size: 549 B |
BIN
flags/bg.png
Normal file
After Width: | Height: | Size: 539 B |
BIN
flags/bh.png
Normal file
After Width: | Height: | Size: 647 B |
BIN
flags/bi.png
Normal file
After Width: | Height: | Size: 837 B |
BIN
flags/bj.png
Normal file
After Width: | Height: | Size: 607 B |
BIN
flags/bm.png
Normal file
After Width: | Height: | Size: 773 B |
BIN
flags/bn.png
Normal file
After Width: | Height: | Size: 786 B |
BIN
flags/bo.png
Normal file
After Width: | Height: | Size: 632 B |
BIN
flags/br.png
Normal file
After Width: | Height: | Size: 801 B |
BIN
flags/bs.png
Normal file
After Width: | Height: | Size: 620 B |
BIN
flags/bt.png
Normal file
After Width: | Height: | Size: 929 B |
BIN
flags/bv.png
Normal file
After Width: | Height: | Size: 819 B |
BIN
flags/bw.png
Normal file
After Width: | Height: | Size: 680 B |
BIN
flags/by.png
Normal file
After Width: | Height: | Size: 567 B |
BIN
flags/bz.png
Normal file
After Width: | Height: | Size: 841 B |
BIN
flags/ca.png
Normal file
After Width: | Height: | Size: 754 B |
BIN
flags/cc.png
Normal file
After Width: | Height: | Size: 717 B |
BIN
flags/cd.png
Normal file
After Width: | Height: | Size: 758 B |
BIN
flags/cf.png
Normal file
After Width: | Height: | Size: 764 B |
BIN
flags/cg.png
Normal file
After Width: | Height: | Size: 645 B |
BIN
flags/ch.png
Normal file
After Width: | Height: | Size: 582 B |
BIN
flags/ci.png
Normal file
After Width: | Height: | Size: 680 B |
BIN
flags/ck.png
Normal file
After Width: | Height: | Size: 796 B |
BIN
flags/cl.png
Normal file
After Width: | Height: | Size: 609 B |
BIN
flags/cm.png
Normal file
After Width: | Height: | Size: 659 B |
BIN
flags/cn.png
Normal file
After Width: | Height: | Size: 523 B |
BIN
flags/co.png
Normal file
After Width: | Height: | Size: 489 B |
BIN
flags/cr.png
Normal file
After Width: | Height: | Size: 634 B |
BIN
flags/cs.png
Normal file
After Width: | Height: | Size: 569 B |
BIN
flags/cu.png
Normal file
After Width: | Height: | Size: 766 B |
BIN
flags/cv.png
Normal file
After Width: | Height: | Size: 734 B |
BIN
flags/cx.png
Normal file
After Width: | Height: | Size: 784 B |
BIN
flags/cy.png
Normal file
After Width: | Height: | Size: 768 B |
BIN
flags/cz.png
Normal file
After Width: | Height: | Size: 650 B |
BIN
flags/de.png
Normal file
After Width: | Height: | Size: 534 B |
BIN
flags/dj.png
Normal file
After Width: | Height: | Size: 641 B |
BIN
flags/dk.png
Normal file
After Width: | Height: | Size: 625 B |
BIN
flags/dm.png
Normal file
After Width: | Height: | Size: 882 B |
BIN
flags/do.png
Normal file
After Width: | Height: | Size: 771 B |
BIN
flags/dz.png
Normal file
After Width: | Height: | Size: 909 B |
BIN
flags/ec.png
Normal file
After Width: | Height: | Size: 670 B |
BIN
flags/ee.png
Normal file
After Width: | Height: | Size: 516 B |
BIN
flags/eg.png
Normal file
After Width: | Height: | Size: 519 B |
BIN
flags/eh.png
Normal file
After Width: | Height: | Size: 643 B |
BIN
flags/er.png
Normal file
After Width: | Height: | Size: 789 B |
BIN
flags/es.png
Normal file
After Width: | Height: | Size: 634 B |
BIN
flags/et.png
Normal file
After Width: | Height: | Size: 830 B |
BIN
flags/fi.png
Normal file
After Width: | Height: | Size: 654 B |
BIN
flags/fj.png
Normal file
After Width: | Height: | Size: 974 B |
BIN
flags/fk.png
Normal file
After Width: | Height: | Size: 730 B |
BIN
flags/fm.png
Normal file
After Width: | Height: | Size: 800 B |
BIN
flags/fo.png
Normal file
After Width: | Height: | Size: 761 B |
BIN
flags/fr.png
Normal file
After Width: | Height: | Size: 694 B |
BIN
flags/fx.png
Normal file
After Width: | Height: | Size: 694 B |
BIN
flags/ga.png
Normal file
After Width: | Height: | Size: 561 B |
BIN
flags/gb.png
Normal file
After Width: | Height: | Size: 980 B |
BIN
flags/gd.png
Normal file
After Width: | Height: | Size: 754 B |
BIN
flags/ge.png
Normal file
After Width: | Height: | Size: 631 B |
BIN
flags/gf.png
Normal file
After Width: | Height: | Size: 694 B |
BIN
flags/gg.png
Normal file
After Width: | Height: | Size: 530 B |
BIN
flags/gh.png
Normal file
After Width: | Height: | Size: 579 B |
BIN
flags/gi.png
Normal file
After Width: | Height: | Size: 645 B |
BIN
flags/gl.png
Normal file
After Width: | Height: | Size: 702 B |
BIN
flags/gm.png
Normal file
After Width: | Height: | Size: 598 B |
BIN
flags/gn.png
Normal file
After Width: | Height: | Size: 762 B |
BIN
flags/gp.png
Normal file
After Width: | Height: | Size: 694 B |
BIN
flags/gq.png
Normal file
After Width: | Height: | Size: 738 B |
BIN
flags/gr.png
Normal file
After Width: | Height: | Size: 744 B |
BIN
flags/gs.png
Normal file
After Width: | Height: | Size: 745 B |
BIN
flags/gt.png
Normal file
After Width: | Height: | Size: 831 B |
BIN
flags/gu.png
Normal file
After Width: | Height: | Size: 819 B |
BIN
flags/gw.png
Normal file
After Width: | Height: | Size: 557 B |
BIN
flags/gy.png
Normal file
After Width: | Height: | Size: 815 B |
BIN
flags/hk.png
Normal file
After Width: | Height: | Size: 636 B |
BIN
flags/hm.png
Normal file
After Width: | Height: | Size: 789 B |
BIN
flags/hn.png
Normal file
After Width: | Height: | Size: 734 B |