public function reply() { $ajax = 1; global_run(); if (!$GLOBALS['user_info']) { $result['status'] = -1000; $result['info'] = "未登录"; ajax_return($result); } if ($_REQUEST['content'] == '') { showErr($GLOBALS['lang']['MESSAGE_CONTENT_EMPTY'], $ajax); } /*验证每天只允许评论5次*/ $day_send_count = $GLOBALS['db']->getOne("select count(*) from " . DB_PREFIX . "topic_reply where create_time>" . to_timespan(to_date(NOW_TIME, "Y-m-d"), "Y-m-d") . " and create_time<" . NOW_TIME); if ($day_send_count >= 8) { showErr('今天你已经发很多了哦~', $ajax); } if (!check_ipop_limit(get_client_ip(), "message", intval(app_conf("SUBMIT_DELAY")), 0)) { showErr($GLOBALS['lang']['MESSAGE_SUBMIT_FAST'], $ajax); } $topic_info = $GLOBALS['db']->getRow("select * from " . DB_PREFIX . "topic where id = " . intval($_REQUEST['topic_id'])); if (!$topic_info) { showErr("主题不存在", $ajax); } $reply_data = array(); $reply_data['topic_id'] = intval($_REQUEST['topic_id']); $reply_data['user_id'] = intval($GLOBALS['user_info']['id']); $reply_data['user_name'] = $GLOBALS['user_info']['user_name']; $reply_data['reply_id'] = intval($_REQUEST['reply_id']); $reply_data['create_time'] = NOW_TIME; $reply_data['is_effect'] = 1; $reply_data['is_delete'] = 0; $reply_data['content'] = strim(valid_str(addslashes($_REQUEST['content']))); require_once APP_ROOT_PATH . 'system/model/topic.php'; $reply_id = insert_topic_reply($reply_data); //返回页面的数据 $reply_data['reply_id'] = $reply_id; $reply_data['create_time'] = to_date(NOW_TIME, "Y-m-d H:i"); $reply_data['avatar'] = show_avatar($reply_data['user_id'], "small"); $reply_data['user_url'] = url("index", "uc_home#index", array("id" => $reply_data['user_id'])); $reply_data['status'] = 1; ajax_return($reply_data); }
<td width="50%" align="right"><?php echo __('Access level'); ?> :</td> <td width="50%" align="left"><?php echo (int) @$tpldata['values']['accesslevel']; ?> </td> </tr> <tr> <td width="50%" align="right" valign=top><?php echo __('Your current avatar') . ':'; ?> </td> <td><?php echo show_avatar($tpldata['values']['username']); ?> <br><a href="?module=avatar.control"><?php echo __('Avatar control'); ?> </a></td> </tr> <tr> <td width="50%" align="right"><?php echo __('Current password') . ':<br /><small>' . __('To change profile data you must enter your current password.') . '</small'; ?> </td> <td width="50%" align="left"><input type="password" name="current_password" /></td> </tr> <?php }
return false; } if (isset($_GET['del'])) { pm_post_remove($_GET['del']); } if (isset($_GET['mode'])) { $msgs = pm_get_all_msgs(100, true, false); $result = '<table width="99%">'; foreach ($msgs as $val => $key) { $bs = ''; $be = ''; if ($key['new'] == '1') { $bs = "<b>"; $be = "</b>"; } $result .= '<tr><td colspan=2 class="row3" align="left"> ' . $bs . $key['time'] . ' ' . __('Private message') . ' №' . ($val + 1) . ' (' . __('Maximum size of database (in messages)') . ' - 100), ' . $key['nickname'] . ' (' . $key['username'] . ') ' . __('wrote') . $be . ':</td></tr><tr class="row2"><td width = 20 valign = top>' . show_avatar($key['username']) . '</td><td align="left">' . $key['text'] . '</td></tr> <tr><td align="right" colspan=2><a href="?module=pm&for=' . $key['username'] . '&re=' . $val . '">' . __('Reply') . '</a> <a href="?module=pm&del=' . $val . '&mode=get">' . __('Delete') . '</a></tr> <td></td><tr></tr>'; } $result .= '</table>'; show_window(__('Your messages'), $result, 'center'); pm_set_all_nonew(100, true, true); return false; } if (!isset($_POST['to'])) { if (isset($_GET['for'])) { $for = $_GET['for']; $re = ''; if (isset($_GET['re'])) { $re = '[quote=' . $for . ']' . pm_get_msg_by_id(100, false, true, $_GET['re']) . '[/quote]'; } $result = '<form method="post" action="" name="form1">' . rcms_show_bbcode_panel('form1.support_req') . '<input type="hidden" name="to" value="' . $for . '" />
<?php // Ukończone i w trakcie realizacji projekty // $finished_projects = new WP_Query(project_args_per_user($current_member, 'finished')); $in_progress_projects = new WP_Query(project_args_per_user($current_member, 'in_progress')); ?> <div class="memberInfo"> <div class="violetWrapper"> <div class="memberInfo__avatar"> <?php echo show_avatar($current_member, 'avatar'); ?> </div> <div class="memberInfo__nameWrapper"> <div class="memberInfo__name"><?php echo $current_member->display_name; ?> </div> <span class="memberInfo__social"><?php social_links($current_member, 'link--glowing'); ?> </span> </div> </div> <div class="whiteWrapper"> <span class="memberInfo__status"><?php show_membership_status($current_member); ?> </span> <?php
echo "<tr><td class=headerfiche>{$strMatch} {$strFinale} {$type} #{$match->numero}</td></tr>"; } else { echo "<tr><td class=headerfiche>{$strMatch} {$strGrandFinal}</td></tr>"; } } echo "<tr><td>"; echo "<table cellspacing=0 cellpadding=3 border=0 width=100%>"; echo "<tr><td class=text colspan=5><img src=images/spacer.gif></td></tr>"; if ($avatar_ok && $op != 'admin') { echo "<tr>"; echo "<td class=text colspan=1 align=center>"; echo show_avatar($img1); echo "</td>"; echo "<td class=text colspan=3 align=center><font size=+2>{$strVS}</font></td>"; echo "<td class=text colspan=1 align=center>"; echo show_avatar($img2); echo "</td>"; echo "</tr>"; } echo "<tr>"; echo "<td class=text align=center width=120> "; if ($op == 'admin') { echo "<select name=equipe1><option value=0>"; if ($match->equipe1 && status_participe($match->equipe1, $match->tournois) != 'P') { echo "<option value={$match->equipe1} SELECTED>! " . $nom_participant($match->equipe1) . " !"; } foreach ($participants_list as $eid => $enom) { if ($eid == $match->equipe1) { echo "<option value={$eid} SELECTED>{$enom}"; } else { echo "<option value={$eid}>{$enom}";
<?php $user =& $tpldata['userdata']; ?> <table cellspacing="1" cellpadding="2" border="0" class="blackborder" style="width: 100%;"> <tr> <th><?php echo __('User profile of'); ?> </th> <td class="row3"> <?php echo show_avatar($user['username']); ?> </td> </tr> <tr> <th><?php echo __('Nickname'); ?> </th> <td class="row3"><?php echo $user['nickname']; ?> </td> </tr> <tr> <th><?php echo __('E-mail'); ?> </th> <td class="row3"><?php
$adresatz = ''; $allusers = $system->getUserList('*', 'nickname'); foreach ($allusers as $key => $eachuser) { $adresatz .= '<a href="?module=pm&for=' . $eachuser['username'] . '">' . $eachuser['nickname'] . '</a><br>'; } show_window(__('Recipients'), $adresatz); $msgs = pm_get_all_msgs(10, true, false); $result = '<table width=99%>'; foreach ($msgs as $val => $key) { $bs = ''; $be = ''; if ($key['new'] == '1') { $bs = "<b>"; $be = "</b>"; } $result .= '<tr><td colspan=2 class="row3" align="left"> ' . $bs . $key['time'] . ' ' . $key['nickname'] . ' (' . $key['username'] . ') ' . __('wrote') . $be . ':</td></tr><tr class="row2"><td width = 20 valign = top>' . show_avatar($key['username']) . '</td><td align="left">' . $key['text'] . '</td></tr> <tr><td align="right" colspan=2><a href="?module=pm&for=' . $key['username'] . '&re=' . $val . '">' . __('Reply') . '</a> <a href="?module=pm&del=' . $val . '&mode=get">' . __('Delete') . '</a></tr> <td></td><tr></tr>'; } $result .= '</table>'; show_window(__('Your messages'), $result, 'center'); pm_set_all_nonew(10, true, true); return false; } if (!isset($_POST['to'])) { if (isset($_GET['for'])) { $for = $_GET['for']; $re = ''; if (isset($_GET['re'])) { $re = '[quote]' . pm_get_msg_by_id(10, true, true, $_GET['re']) . '[/quote]'; } $result = '<form method="post" action="" name="form1">' . rcms_show_bbcode_panel('form1.support_req') . '<input type="hidden" name="to" value="' . $for . '" />
?> [/b] ')"><?php } ?> <b><?php echo $post['author_nick']; ?> </b><?php if (!$tpldata['topic']['closed']) { ?> </a><?php } ?> <br /> <?php echo show_avatar($post['author_name']); ?> <br/> <?php echo rcms_get_user_status($post['author_name']); ?> <br /> <?php if (!pm_disabled() and $post['author_name'] != 'guest' and $system->user['username'] != 'guest') { print '<a href="?module=pm&for=' . $post['author_name'] . '">' . __('Send PM') . '</a><br />'; } ?> </td> <td class="row2" align="left" width="100%"> <small><?php echo rcms_format_time('H:i:s d\\&\\n\\b\\s\\p\\;F\\&\\n\\b\\s\\p\\;Y', $post['date']);
} } } //for } $message_id++; echo '<table border=0 cellpadding="4" cellspacing="1" width=100%>'; echo '<tr><td class="textforum2" width="25%">' . show_joueur($datar->auteur) . '</td>'; echo '<td class="textforum3">'; echo "<div align='left' style='float:left;padding-top:4px;padding-bottom:4px'>"; echo '' . $strLe . ' ' . $date . ''; echo '</div>'; echo "<div align='right' style='float:right;padding-top:4px;padding-bottom:4px'>"; echo $edit; echo '</div></td></tr>'; echo '<tr><td class="textforum4" width="25%">' . show_avatar($joueur->avatar_img) . '<br><div align="center">' . $rank_av . '<br>' . $joueur->forum_userrank . '<br><div align="left">' . $strNbpost . ' : ' . $joueur->forum_post . '</td>'; echo '<td class="textforum">' . bbcode(stripslashes($datar->message)) . ''; if ($datar->edit == 'O') { echo "<br><br><br><br><font size='-3'> <b>{$strFedit}</b> " . strftime("%c", $datar->edit_date) . " {$strBy} " . nom_joueur($datar->edit_by) . "</font>"; } echo '</td></tr>'; echo '</table>'; } echo '</td></tr>'; // ajout choix affichage echo '<form method=post name="forum_formu"action="?page=forum&op=read&topid=' . $topid . '&cattopic=' . $cat . '&titre=' . $titre . '&topic=' . $topic . '">'; echo '<tr><td colspan="3" class=textfiche align=center>'; //tableau def affichage echo "{$strFNbpage} <select name=nbtopicpageX>"; echo "<option value=\"" . $nbtopicpageX . "\" >" . $nbtopicpageX . "</option>"; for ($nbpage = "1"; $nbpage <= $nbtopicpage; $nbpage++) {
<?php //http://wordpress.stackexchange.com/a/119946 global $post; $author_id = $post->post_author; foreach (get_coauthors() as $curauth) { ?> <div class="membercardSmall"> <div class="membercardSmall__avatarWrapper"> <a href="<?php echo get_author_posts_url($curauth->ID, $curauth->user_nicename); ?> "> <?php echo show_avatar($curauth, 'membercardSmall__avatar'); ?> </a> <div title="Liczba ukończonych projektów" class="membercardSmall__counter"><?php echo get_number_of_projects($curauth, 'finished'); ?> </div> </div> <div> <h3 class="membercardSmall__name"> <a class="link link--name noWrap" href="<?php echo get_author_posts_url($curauth->ID, $curauth->user_nicename); ?> " rel="author"><?php echo $curauth->display_name; ?> </a>
?> </th> <th align="right"> <?php if ($system->checkForRight('ARTICLES-MODERATOR')) { ?> <form method="post" action=""> <input type="hidden" name="cdelete" value="<?php echo $tpldata['id']; ?> " /> <input type="submit" name="" class="delete_button" value="" /> </form> <?php } ?> </th> </tr> </table> <table border="0" cellpadding="1" cellspacing="1" width="100%"> <tr> <td align="left" valign="top" class="row3" width="10%"><?php echo show_avatar($tpldata['author_user']); ?> </td> <td align="left" valign="top" class="row3" width="90%"><?php echo $tpldata['text']; ?> </td> </tr> </table>
<?php // Ukończone i w trakcie realizacji projekty // $finished_projects = new WP_Query(project_args_per_user($current_member, 'finished')); $in_progress_projects = new WP_Query(project_args_per_user($current_member, 'in_progress')); ?> <div class="memberInfo"> <div class="violetWrapper"> <div class="memberInfo__avatar"> <?php echo show_avatar($current_member); ?> </div> <div class="memberInfo__nameWrapper"> <div class="memberInfo__name"><?php echo $current_member->display_name; ?> </div> <span class="memberInfo__social"><?php social_links($current_member); ?> </span> </div> </div> <div class="whiteWrapper"> <span class="memberInfo__status"><?php show_membership_status($current_member); ?> </span>
?> <?php echo $firstName; ?> </b><br> <br><?php echo $MSG_LANG["avatarinfo"]; ?> <br> <br> <?php echo $MSG_LANG["avatar1"]; ?> <br> <?php show_avatar($_SESSION['playerID']); ?> <br><br> <a href="avatar.php?action=delete">[ <?php echo $MSG_LANG["avatardelete"]; ?> ]</a><br> <br> <hr> <?php echo $MSG_LANG["avatar2"]; ?> <br> <br> <form enctype="multipart/form-data" action="avatar.php" method="post"> <input type="hidden" name="action" value="upload"></input>
echo '<tr><td>'; echo '<table cellspacing="0" cellpadding="2" border="0" width="100%">'; /*** pseudo ***/ echo "<tr>"; echo '<td class="textfiche" colspan="2" align=right>'; if ($op == 'admin') { echo "{$strPseudo} :"; echo "<input type=\"text\" name=\"pseudo\" value=\"" . stripslashes($joueur->pseudo) . "\" maxlength=\"20\">"; } else { echo "<b><font size=5px>{$joueur->pseudo}</b>"; } echo '</td>'; /*** avatar ***/ echo '<td class="textfiche" colspan="2" style="vertical-align:top">'; if ($config['avatar'] == 'J' || $config['avatar'] == 'A') { echo '<span style="float: right;" >' . show_avatar($joueur->avatar_img) . '</span>'; } echo '</td></tr>'; /*** nom ***/ if ($mods['nom'] == "1") { if ($op == 'admin') { echo "<tr><td width=\"30%\" class=\"titlefiche\">{$strNom} :</td>"; echo '<td class="textfiche" colspan="6">'; echo "<input type=\"text\" name=\"nom\" value=\"" . stripslashes($joueur->nom) . "\" maxlength=\"20\">"; echo '</td></tr>'; } } /*** prenom ***/ if ($mods['prenom'] == "1") { if ($op == 'admin') { echo "<tr><td class=\"titlefiche\">{$strPrenom} :</td>";
echo "<table cellspacing=1 cellpadding=0 border=0 class=fiche width=100%>"; echo "<tr><td class=headerfiche>{$strFiche}</td></tr>"; echo "<tr><td>"; echo "<table cellspacing=0 cellpadding=3 border=0 width=100%>"; /*** nom ***/ echo "<tr><td width=33% class=titlefiche>{$strNom} :</td>"; echo "<td class=textfiche>"; if ($is_manager || $op == 'admin') { echo "<input type=text name=nom value=\"" . stripslashes($equipe->nom) . "\">"; } else { echo "<b>{$equipe->nom}</b>"; } echo "</td>"; echo "<td class=textfiche rowspan=4>"; if ($config['avatar'] == 'E' || $config['avatar'] == 'A') { echo "<div style=\"float: right;\">" . show_avatar($equipe->avatar_img) . "</div>"; } echo "</td></tr>"; /*** tag ***/ echo "<tr><td class=titlefiche>{$strTag} :</td>"; echo "<td class=textfiche>"; if ($op == 'admin' || $is_manager) { echo "<input type=text name=tag value=\"" . stripslashes($equipe->tag) . "\">"; } else { echo "{$equipe->tag}"; } echo "</td></tr>"; /*** origine ***/ $tab_countrys = file("images/flags/country"); echo "<tr><td class=titlefiche>{$strOrigine} :</td>"; echo "<td class=textfiche>";
<?php $page = 'home'; require_once 'includes/header.php'; $masterpiece = $_GET['mastid']; $query = "SELECT masterpieces.images, master_id\n\t\tFROM masterpieces\n\t\tORDER BY date DESC"; $result = $db->query($query); $user_id = $_SESSION['user_id']; ?> <section class="user cf"> <article> <a href="profile.php"><img src="<?php show_avatar($user_id); ?> " alt="profile picture"></a> <h1> Welcome <?php show_username($user_id); ?> !</h1> <h2>Click your profile picture to view your profile</h2> </article> </section> <main class="cf"> <h1>Welcome to Inspire!</h1> <h2>Enjoy our latest inspirations</h2> <h3>Latest Inspirations</h3>
$comment_type = get_comment_type(); ?> <?php if ($comment_type == 'comment') { ?> <li class="<?php echo $oddcomment; ?> " id="comment-<?php comment_ID(); ?> "> <?php show_avatar($comment); ?> <div class="vcard"><cite><?php comment_author_link(); ?> </cite><br /> <small><a href="#comment-<?php comment_ID(); ?> " title=""><?php comment_date('F jS, Y'); ?> at <?php comment_time(); ?>
comment_ID(); ?> "> <div class="comment-meta"> <div style="width: 140px; float: left"> <span class="comment-author"><?php comment_author_link(); ?> </span> <span class="comment-date"><?php comment_date('F jS, Y'); ?> </span> </div> <div class="cgravatar"> <?php echo show_avatar($comment, 60); ?> </div> </div> <div class="commenttext"> <?php if ($comment->comment_approved == '0') { ?> Your comment is awaiting moderation. <?php } ?> <?php comment_text(); ?> </div>
$rtn = mysql_fetch_array($rt2); $teamName =$rtn['name']; $nivel = getPlayerLevel($_GET['cod']); $PV = getPV($_GET['cod']); $mylevel = getPlayerLevel($_SESSION['playerID']); $dificuldade = getDifficult($_SESSION['playerID'],$_GET['cod']); if ($row['playerID'] == $_SESSION['playerID']) $isme=1; else $isme=0; echo " <tr><td width='20%' style='text-align:left'><B>".$MSG_LANG["name"]."</td><td style='text-align:left' width=50%>$row[firstName]</td><td valign='center' rowspan='17' width=30%>"; show_avatar($row['playerID']); echo "</td></tr>"; echo " <tr><td width='20%' style='text-align:left'><B>".$MSG_LANG["bio"]."</td><td style='text-align:left' width=50%>$row[bio]</td>"; echo " <tr><td width='20%' style='text-align:left'><B>".$MSG_LANG["localization"]."</td><td style='text-align:left' width=50%>$row[cidade], $row[uf] - $row[pais]</td></tr> <tr><td width='20%' style='text-align:left'><B>".$MSG_LANG["gender"]."</td><td style='text-align:left' width=50%>".$gender[$row[sexo]]."</td></tr> "; //$email = str_replace("@"," at ",$row[email]); //$email = str_replace("."," dot ",$email); //echo "<tr><td width='20%' style='text-align:left'><B>E-mail</td><td colspan=2 style='text-align:left' width=50%>".$email."</td></tr>"; echo "<tr><td width='20%' style='text-align:left'><B>Export Games<img src='images/newsm.gif'></td><td style='text-align:left' width=50%><a href=export_all_pgn.php?cod=".$_GET['cod'].">Export all games as a pgn file.</a> </td></tr>"; if ($row['DisplayBot'] == 1) echo "<tr><td width='20%' style='text-align:left'><B>".$MSG_LANG["sendmessage"]."</td><td style='text-align:left'><font size=+1 font color='RED'>".$MSG_LANG['playwiththecomputer']."</font><img alt='".$MSG_LANG['playwiththecomputer']."' src='images/icons/bots.gif' width='22' height='22'> </td> </td></tr>"; else if (!$isme)