当前位置: 首页>>代码示例>>PHP>>正文


PHP cleartext函数代码示例

本文整理汇总了PHP中cleartext函数的典型用法代码示例。如果您正苦于以下问题:PHP cleartext函数的具体用法?PHP cleartext怎么用?PHP cleartext使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了cleartext函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: AuraCMSSEO

function AuraCMSSEO($string)
{
    $string = str_replace(' ', '-', $string);
    $string = preg_replace('/[^0-9a-zA-Z-_]/', '', $string);
    $string = str_replace('-', ' ', $string);
    $string = preg_replace('/^\\s+|\\s+$/', '', $string);
    $string = preg_replace('/\\s+/', ' ', $string);
    $string = str_replace(' ', '-', $string);
    return strtolower(cleartext($string));
}
开发者ID:rekysda,项目名称:indorepair,代码行数:10,代码来源:pages.php

示例2: print_termine

function print_termine($tag, $month, $year)
{
    global $wincolor;
    global $loosecolor;
    global $drawcolor;
    global $userID;
    global $_language;
    $_language->read_module('calendar');
    $pagebg = PAGEBG;
    $border = BORDER;
    $bghead = BGHEAD;
    $bgcat = BGCAT;
    $start_date = mktime(0, 0, 0, $month, $tag, $year);
    $end_date = mktime(23, 59, 59, $month, $tag, $year);
    unset($termin);
    $ergebnis = safe_query("SELECT * FROM " . PREFIX . "upcoming");
    $anz = mysql_num_rows($ergebnis);
    if ($anz) {
        while ($ds = mysql_fetch_array($ergebnis)) {
            if ($ds['type'] == "c") {
                if ($ds['date'] >= $start_date && $ds['date'] <= $end_date) {
                    $date = date("d.m.Y", $ds['date']);
                    $time = date("H:i", $ds['date']);
                    $squad = getsquadname($ds['squad']);
                    $oppcountry = "[flag]" . $ds['oppcountry'] . "[/flag]";
                    $oppcountry = flags($oppcountry);
                    $opponent = $oppcountry . ' <a href="' . $ds['opphp'] . '" target="_blank">' . clearfromtags($ds['opptag']) . ' / ' . clearfromtags($ds['opponent']) . '</a>';
                    $maps = clearfromtags($ds['maps']);
                    $server = clearfromtags($ds['server']);
                    $league = '<a href="' . $ds['leaguehp'] . '" target="_blank">' . clearfromtags($ds['league']) . '</a>';
                    if (isclanmember($userID)) {
                        $warinfo = cleartext($ds['warinfo']);
                    } else {
                        $warinfo = $_language->module['you_have_to_be_clanmember'];
                    }
                    $players = "";
                    $announce = "";
                    $adminaction = '';
                    if (isclanmember($userID) or isanyadmin($userID)) {
                        $anmeldung = safe_query("SELECT * FROM " . PREFIX . "upcoming_announce WHERE upID='" . $ds['upID'] . "'");
                        if (mysql_num_rows($anmeldung)) {
                            $i = 1;
                            while ($da = mysql_fetch_array($anmeldung)) {
                                if ($da['status'] == "y") {
                                    $fontcolor = $wincolor;
                                } elseif ($da['status'] == "n") {
                                    $fontcolor = $loosecolor;
                                } else {
                                    $fontcolor = $drawcolor;
                                }
                                if ($i > 1) {
                                    $players .= ', <a href="index.php?site=profile&amp;id=' . $da['userID'] . '"><font color="' . $fontcolor . '">' . getnickname($da['userID']) . '</font></a>';
                                } else {
                                    $players .= '<a href="index.php?site=profile&amp;id=' . $da['userID'] . '"><font color="' . $fontcolor . '">' . getnickname($da['userID']) . '</font></a>';
                                }
                                $i++;
                            }
                        } else {
                            $players = $_language->module['no_announced'];
                        }
                        if (issquadmember($userID, $ds['squad']) and $ds['date'] > time()) {
                            $announce = '&#8226; <a href="index.php?site=calendar&amp;action=announce&amp;upID=' . $ds['upID'] . '">' . $_language->module['announce_here'] . '</a>';
                        } else {
                            $announce = "";
                        }
                        if (isclanwaradmin($userID)) {
                            $adminaction = '<div align="right">
            <input type="button" onclick="MM_openBrWindow(\'clanwars.php?action=new&amp;upID=' . $ds['upID'] . '\',\'Clanwars\',\'toolbar=no,status=no,scrollbars=yes,width=800,height=490\')" value="' . $_language->module['add_clanwars'] . '" />
            <input type="button" onclick="MM_goToURL(\'parent\',\'index.php?site=calendar&amp;action=editwar&amp;upID=' . $ds['upID'] . '\');return document.MM_returnValue" value="' . $_language->module['edit'] . '" />
            <input type="button" onclick="MM_confirm(\'' . $_language->module['really_delete'] . '\', \'calendar.php?action=delete&amp;upID=' . $ds['upID'] . '\')" value="' . $_language->module['delete'] . '" /></div>';
                        } else {
                            $adminaction = '';
                        }
                    } else {
                        $players = $_language->module['access_member'];
                    }
                    $bg1 = BG_1;
                    $bg2 = BG_2;
                    $bg3 = BG_3;
                    $bg4 = BG_4;
                    eval("\$upcoming_war_details = \"" . gettemplate("upcoming_war_details") . "\";");
                    echo $upcoming_war_details;
                }
            } else {
                if ($start_date <= $ds['date'] && $end_date >= $ds['date'] || $start_date >= $ds['date'] && $end_date <= $ds['enddate'] || $start_date <= $ds['enddate'] && $end_date >= $ds['enddate']) {
                    $date = date("d.m.Y", $ds['date']);
                    $time = date("H:i", $ds['date']);
                    $enddate = date("d.m.Y", $ds['enddate']);
                    $endtime = date("H:i", $ds['enddate']);
                    $title = clearfromtags($ds['title']);
                    $location = '<a href="' . $ds['locationhp'] . '" target="_blank">' . clearfromtags($ds['location']) . '</a>';
                    $dateinfo = cleartext($ds['dateinfo']);
                    $dateinfo = toggle($dateinfo, $ds['upID']);
                    $country = "[flag]" . $ds['country'] . "[/flag]";
                    $country = flags($country);
                    $players = "";
                    if (isclanmember($userID)) {
                        $anmeldung = safe_query("SELECT * FROM " . PREFIX . "upcoming_announce WHERE upID='" . $ds['upID'] . "'");
                        if (mysql_num_rows($anmeldung)) {
                            $i = 1;
//.........这里部分代码省略.........
开发者ID:Blaz3r,项目名称:webSPELL,代码行数:101,代码来源:calendar.php

示例3: getlanguage

			else
				$headline = $ds [headline1];
			
			if ($ds [content2])
				$content = $ds [content2];
			else
				$content = '[b]no version in selected language available![/b].[br][br]' . $ds [content1];
			
			if ($ds [headline1]) {
				$langs = '<a href="index.php?site=news_comments&newsID=' . $ds [newsID] . '&lang=' . $ds [lang1] . '">' . $language1 . '</a>';
				$language = getlanguage ( $ds [lang1] );
				$langs = eregi_replace ( '(alt=")(.*)(")', "\\1 News in $language\\3", $langs );
			} else
				$langs = '';
		}
		$content = cleartext ( $content );
		$content = toggle ( $content, $ds [newsID] );
		$poster = '' . getnickname ( $ds [poster] ) . '';
		if ($ds [link1] && $ds [url1] != "http://" && $ds [window1])
			$related .= '&#8226; <a href="' . $ds [url1] . '" target="_blank">' . $ds [link1] . '</a><br> ';
		if ($ds [link1] && $ds [url1] != "http://" && ! $ds [window1])
			$related .= '&#8226; <a href="' . $ds [url1] . '">' . $ds [link1] . '</a><br> ';
		
		if ($ds [link2] && $ds [url2] != "http://" && $ds [window2])
			$related .= '&#8226; <a href="' . $ds [url2] . '" target="_blank">' . $ds [link2] . '</a><br> ';
		if ($ds [link2] && $ds [url2] != "http://" && ! $ds [window2])
			$related .= '&#8226; <a href="' . $ds [url2] . '">' . $ds [link2] . '</a><br> ';
		
		if ($ds [link3] && $ds [url3] != "http://" && $ds [window3])
			$related .= '&#8226; <a href="' . $ds [url3] . '" target="_blank">' . $ds [link3] . '</a><br> ';
		if ($ds [link3] && $ds [url3] != "http://" && ! $ds [window3])
开发者ID:rawthang,项目名称:dbx,代码行数:31,代码来源:index.php

示例4: getusernewsposts

 /******HardwareMod******/
 /************************************************/
 $anznewsposts = getusernewsposts($ds['userID']);
 $anzforumtopics = getuserforumtopics($ds['userID']);
 $anzforumposts = getuserforumposts($ds['userID']);
 $comments = array();
 $comments[] = getusercomments($ds['userID'], 'ne');
 $comments[] = getusercomments($ds['userID'], 'cw');
 $comments[] = getusercomments($ds['userID'], 'ar');
 $comments[] = getusercomments($ds['userID'], 'de');
 $pmgot = 0;
 $pmgot = $ds['pmgot'];
 $pmsent = 0;
 $pmsent = $ds['pmsent'];
 if ($ds['about']) {
     $about = '' . cleartext($ds['about']) . '';
 } else {
     $about = 'No user data.';
 }
 if (isforumadmin($ds['userID'])) {
     $usertype = $_language->module['administrator'];
     $rang = '<img src="images/icons/ranks/admin.gif" alt="" />';
 } elseif (isanymoderator($ds['userID'])) {
     $usertype = $_language->module['moderator'];
     $rang = '<img src="images/icons/ranks/moderator.gif" alt="" />';
 } else {
     $posts = getuserforumposts($ds['userID']);
     $ergebnis = safe_query("SELECT * FROM " . PREFIX . "forum_ranks WHERE " . $posts . " >= postmin AND " . $posts . " <= postmax AND postmax >0");
     $ds = mysql_fetch_array($ergebnis);
     $usertype = $ds['rank'];
     $rang = '<img src="images/icons/ranks/' . $ds['pic'] . '" alt="" />';
开发者ID:hellagent75,项目名称:ign_live,代码行数:31,代码来源:profile.php

示例5: Header

 *		http://www.iwan.or.id
 *		http://www.ridwan.or.id
 *		http://www.auracms.opensource-indonesia.com
 *
 */
if (!defined('AURACMS_CONTENT')) {
    Header("Location: ../index.php");
    exit;
}
if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
    header("HTTP/1.1 404 Not Found");
    exit;
}
global $koneksi_db, $maxdata;
$tengah = '<h4 class="bg">Hasil Pencarian</h4>';
$query = cleartext($_GET['query']);
if ($query == '' or !isset($query)) {
    $tengah .= "<div class=\"error\">Tidak Ada Pencarian</div>";
} else {
    $limit = 10;
    $s1 = '';
    $query = htmlentities($query);
    $hasil = $koneksi_db->sql_query("SELECT * FROM artikel WHERE ((judul LIKE '%{$query}%' OR konten LIKE '%{$query}%' OR user LIKE '%{$query}%')AND publikasi=1)");
    $jumlah = $koneksi_db->sql_numrows($hasil);
    if ($jumlah < 1) {
        $s1 = "tidak ada";
    }
    $a = new paging($limit);
    if (!$s1) {
        $tengah .= '<div class="border">';
        $tengah .= "Yang dicari <b>\"{$query}\"</b>";
开发者ID:rekysda,项目名称:indorepair,代码行数:31,代码来源:search.php

示例6: safe_query

 <table width="100%" border="0" cellspacing="1" cellpadding="3" bgcolor="#DDDDDD">
   <tr>
     <td width="72%" class="title"><b>' . $_language->module['faq'] . '</b></td>
     <td width="20%" class="title"><b>' . $_language->module['actions'] . '</b></td>
     <td width="8%" class="title"><b>' . $_language->module['sort'] . '</b></td>
   </tr>';
   $ergebnis = safe_query("SELECT * FROM " . PREFIX . "faq_categories ORDER BY sort");
   $anz = safe_query("SELECT count(faqcatID) FROM " . PREFIX . "faq_categories");
   $anz = mysql_result($anz, 0);
   $CAPCLASS = new Captcha();
   $CAPCLASS->create_transaction();
   $hash = $CAPCLASS->get_hash();
   while ($ds = mysql_fetch_array($ergebnis)) {
       echo '<tr>
     <td class="td_head" colspan="3"><b>' . $ds['faqcatname'] . '</b>
     <br /><small>' . cleartext($ds['description'], 1, 'admin') . '</small></td>
   </tr>';
       $faq = safe_query("SELECT * FROM " . PREFIX . "faq WHERE faqcatID='{$ds['faqcatID']}' ORDER BY sort");
       $anzfaq = safe_query("SELECT count(faqID) FROM " . PREFIX . "faq WHERE faqcatID='{$ds['faqcatID']}'");
       $anzfaq = mysql_result($anzfaq, 0);
       $i = 1;
       while ($db = mysql_fetch_array($faq)) {
           if ($i % 2) {
               $td = 'td1';
           } else {
               $td = 'td2';
           }
           echo '<tr>
       <td class="' . $td . '"><b>- ' . getinput($db['question']) . '</b></td>
       <td class="' . $td . '" align="center"><input type="button" onclick="MM_goToURL(\'parent\',\'admincenter.php?site=faq&amp;action=edit&amp;faqID=' . $db['faqID'] . '\');return document.MM_returnValue" value="' . $_language->module['edit'] . '" />
       <input type="button" onclick="MM_confirm(\'' . $_language->module['really_delete'] . '\', \'admincenter.php?site=faq&amp;delete=true&amp;faqID=' . $db['faqID'] . '&amp;captcha_hash=' . $hash . '\')" value="' . $_language->module['delete'] . '" /></td>
开发者ID:Blaz3r,项目名称:webSPELL,代码行数:31,代码来源:faq.php

示例7: safe_query

 $ergebnis = safe_query("SELECT * FROM " . PREFIX . "faq_categories ORDER BY sort");
 $anz = safe_query("SELECT count(faqcatID) FROM " . PREFIX . "faq_categories");
 $anz = mysql_result($anz, 0);
 $i = 1;
 $CAPCLASS = new Captcha();
 $CAPCLASS->create_transaction();
 $hash = $CAPCLASS->get_hash();
 while ($ds = mysql_fetch_array($ergebnis)) {
     if ($i % 2) {
         $td = 'td1';
     } else {
         $td = 'td2';
     }
     echo '<tr>
   <td class="' . $td . '"><b>' . getinput($ds['faqcatname']) . '</b>
   <br />' . cleartext($ds['description'], 1, 'admin') . '</td>
   <td class="' . $td . '" align="center"><input type="button" onclick="MM_goToURL(\'parent\',\'admincenter.php?site=faqcategories&amp;action=editcat&amp;faqcatID=' . $ds['faqcatID'] . '\');return document.MM_returnValue" value="' . $_language->module['edit'] . '" />
   <input type="button" onclick="MM_confirm(\'' . $_language->module['really_delete'] . '\', \'admincenter.php?site=faqcategories&amp;delcat=true&amp;faqcatID=' . $ds['faqcatID'] . '&amp;captcha_hash=' . $hash . '\')" value="' . $_language->module['delete'] . '" /></td>
   <td class="' . $td . '" align="center"><select name="sortfaqcat[]">';
     for ($n = 1; $n <= $anz; $n++) {
         if ($ds['sort'] == $n) {
             echo '<option value="' . $ds['faqcatID'] . '-' . $n . '" selected="selected">' . $n . '</option>';
         } else {
             echo '<option value="' . $ds['faqcatID'] . '-' . $n . '">' . $n . '</option>';
         }
     }
     echo '</select></td>
 </tr>';
     $i++;
 }
 echo '<tr>
开发者ID:Blaz3r,项目名称:webSPELL,代码行数:31,代码来源:faqcategories.php

示例8: Clanpackage

#   - It's NOT allowed to remove this copyright-tag                      #
#   -- http://www.fsf.org/licensing/licenses/gpl.html                    #
#                                                                        #
#   Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at),   #
#   Far Development by Development Team - webspell.org                   #
#                                                                        #
#   visit webspell.org                                                   #
#   addon by esport-project.net                                          #
#                                                                        #
 ########################################################################
*/
$ergebnis = safe_query("SELECT * FROM " . PREFIX . "awards ORDER BY date DESC LIMIT 0,4");
while ($ds = mysql_fetch_array($ergebnis)) {
    $date = date("d.m.Y", $ds[date]);
    $squad = '' . getsquadname($ds[squadID]) . '';
    $award = cleartext($ds[award]);
    $rangz = $ds['rang'];
    if ($rangz == '1') {
        $rang = '<img class="awards" src="images/awards/gold.png" alt="1st" title="1st" />';
    } elseif ($rangz == '2') {
        $rang = '<img class="awards" src="images/awards/silver.png" alt="2nd" title="2nd" />';
    } elseif ($rangz == '3') {
        $rang = '<img class="awards" src="images/awards/bronze.png" alt="3rd" title="3rd" />';
    } elseif ($rangz == '4') {
        $rang = '<img class="awards" src="images/awards/7th.png" alt="4th" title="4th" />';
    } elseif ($rangz == '5') {
        $rang = '<img class="awards" src="images/awards/7th.png" alt="5th" title="5th" />';
    } elseif ($rangz == '6') {
        $rang = '<img class="awards" src="images/awards/7th.png" alt="6th" title="6th" />';
    } elseif ($rangz == '7') {
        $rang = '<img class="awards" src="images/awards/7th.png" alt="7th" title="7th" />';
开发者ID:hellagent75,项目名称:ign_live,代码行数:31,代码来源:sm_awards.php

示例9: safe_query

               $rang = '<img src="images/icons/ranks/admin.gif" alt="" />';
               if (isset($_POST['sticky'])) {
                   $_sticky = 'checked="checked"';
               }
           }
       } else {
           $ergebnis = safe_query("SELECT * FROM " . PREFIX . "forum_ranks WHERE {$posts} >= postmin AND {$posts} <= postmax");
           $ds = mysql_fetch_array($ergebnis);
           $usertype = $ds['rank'];
           $rang = '<img src="images/icons/ranks/' . $ds['pic'] . '" alt="" />';
       }
       $actions = '';
       $quote = '';
       echo '<table width="100%" cellspacing="1" cellpadding="2" bgcolor="' . BORDER . '">
 <tr bgcolor="' . BGHEAD . '">
   <td colspan="2" class="title" align="center">' . cleartext($topicname) . '</td>
 </tr>
 <tr bgcolor="' . PAGEBG . '"><td colspan="2"></td></tr>';
       eval("\$forum_topic_content = \"" . gettemplate("forum_topic_content") . "\";");
       echo $forum_topic_content;
       echo '</table>';
   } else {
       $topicname = "";
   }
   eval("\$addbbcode = \"" . gettemplate("addbbcode") . "\";");
   if (isforumadmin($userID) || ismoderator($userID, $board)) {
       if (isset($_sticky)) {
           $chk_sticky = '<br />' . "\n" . ' <input class="input" type="checkbox" name="sticky" value="1" ' . $_sticky . ' /> ' . $_language->module['make_sticky'];
       } else {
           $chk_sticky = '<br />' . "\n" . ' <input class="input" type="checkbox" name="sticky" value="1" /> ' . $_language->module['make_sticky'];
       }
开发者ID:Blaz3r,项目名称:webSPELL,代码行数:31,代码来源:forum.php

示例10: flags

            $oppcountry = "[flag]" . $ds['oppcountry'] . "[/flag]";
            $country = flags($oppcountry);
            $opponent = '<a href="' . $ds['opphp'] . '" target="_blank">' . clearfromtags($ds['opponent']) . '</a>';
            $league = clearfromtags($ds['league']);
            $map = clearfromtags($ds['map']);
            $server = clearfromtags($ds['server']);
            $info = cleartext($ds['info']);
            $email = '<a href="mailto:' . mail_protect(cleartext($ds['email'])) . '">' . $ds['email'] . '</a>';
            if (isset($ds['hp'])) {
                if (!validate_url($ds['hp'])) {
                    $homepage = '';
                } else {
                    $homepage = '<a href="' . $ds['hp'] . '" target="_blank"><img src="images/icons/hp.gif" border="0" width="14" height="14" alt="homepage" /></a>';
                }
            }
            if (isset($ds['name'])) {
                $name = cleartext($ds['name']);
            }
            if (isset($ds['comment'])) {
                $message = cleartext($ds['comment']);
            }
            $actions = '<input type="button" onclick="MM_goToURL(\'parent\',\'index.php?site=calendar&amp;action=addwar&amp;chID=' . $ds['chID'] . '\');return document.MM_returnValue" value="' . $_language->module['insert_in_calendar'] . '" /> <input type="button" onclick="MM_goToURL(\'parent\',\'index.php?site=challenge&amp;action=delete&amp;chID=' . $ds['chID'] . '\');return document.MM_returnValue" value="' . $_language->module['delete_challenge'] . '" />';
            eval("\$challenges = \"" . gettemplate("challenges") . "\";");
            echo $challenges;
            $i++;
        }
        echo '<br />';
    } else {
        echo $_language->module['no_entries'];
    }
}
开发者ID:Talfagoron,项目名称:webSPELL-1,代码行数:31,代码来源:challenge.php

示例11: safe_query

   }
   $ergebnis = safe_query("SELECT * FROM " . PREFIX . "forum_boards WHERE boardID='{$dt['boardID']}' ");
   $db = mysql_fetch_array($ergebnis);
   $boardname = $db['name'];
   echo '<div style="width:640px;">
 <table width="640" cellpadding="2" cellspacing="0" border="0" bgcolor="#CCCCCC">
   <tr bgcolor="FFFFFF">
     <td><b>' . $boardname . '</b> &#8226; <b>' . getinput($dt['topic']) . '</b></td>
   </tr>
 </table><hr size="1" /><br />';
   echo '<table width="100%" cellpadding="4" cellspacing="1" border="0">';
   $replys = safe_query("SELECT * FROM " . PREFIX . "forum_posts WHERE topicID='{$topic}' ORDER BY date");
   while ($dr = mysql_fetch_array($replys)) {
       $date = date("d.m.Y", $dr['date']);
       $time = date("H:i", $dr['date']);
       $message = cleartext($dr['message']);
       $username = getnickname($dr['poster']);
       if (getsignatur($dr['poster'])) {
           $signatur = '<br /><br />' . getsignatur($dr['poster']);
       } else {
           $signatur = '';
       }
       $posts = getuserforumposts($dr['poster']);
       if (isforumadmin($dr['poster']) || ismoderator($dr['poster'], $dt['boardID'])) {
           if (ismoderator($dr['poster'], $dt['boardID'])) {
               $usertype = "Moderator";
               $rang = '<img src="images/icons/ranks/moderator.gif" alt="" />';
           }
           if (isforumadmin($dr['poster'])) {
               $usertype = "Administrator";
               $rang = '<img src="images/icons/ranks/admin.gif" alt="" />';
开发者ID:hellagent75,项目名称:ign_live,代码行数:31,代码来源:printview.php

示例12: print_cashbox

        function print_cashbox($squadID, $id)
        {
            global $_language;
            $_language->read_module('cash_box');
            $bg1 = BG_1;
            $bg2 = BG_2;
            $pagebg = PAGEBG;
            $border = BORDER;
            $bghead = BGHEAD;
            $bgcat = BGCAT;
            global $wincolor;
            global $loosecolor;
            global $drawcolor;
            global $userID;
            if ($id) {
                $squadergebnis = safe_query("SELECT squad FROM " . PREFIX . "cash_box WHERE cashID='" . $id . "'");
                $dv = mysql_fetch_array($squadergebnis);
                $squadID = $dv['squad'];
            }
            $costs_squad = '';
            if ($squadID == 0) {
                $usersquad = $_language->module['clan'];
            } else {
                $ergebnis_squad = safe_query("SELECT * FROM " . PREFIX . "cash_box_payed, " . PREFIX . "cash_box WHERE " . PREFIX . "cash_box_payed.payed='1' AND " . PREFIX . "cash_box_payed.cashID=" . PREFIX . "cash_box.cashID AND " . PREFIX . "cash_box.squad = '" . $squadID . "'");
                $anz_squad = mysql_num_rows($ergebnis_squad);
                $costs_squad = 0.0;
                if ($anz_squad) {
                    while ($dss = mysql_fetch_array($ergebnis_squad)) {
                        $costs_squad += $dss['costs'];
                    }
                }
                $ergebnis_squad = safe_query("SELECT * FROM " . PREFIX . "cash_box WHERE squad='{$squadID}'");
                $anz_squad = mysql_num_rows($ergebnis_squad);
                if ($anz_squad) {
                    while ($dss = mysql_fetch_array($ergebnis_squad)) {
                        $costs_squad -= $dss['totalcosts'];
                    }
                }
                $costs_squad = ' (' . $costs_squad . ' euro)';
                $usersquad = $_language->module['squad'] . ": " . getsquadname($squadID);
            }
            $ergebnis = safe_query("SELECT * FROM " . PREFIX . "cash_box WHERE squad='" . $squadID . "' ORDER BY paydate DESC LIMIT 0,1");
            echo '<br /><br /><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td valign="top" width="180"><b>' . $usersquad . $costs_squad . '</b></td>
        </tr>
        <tr>
          <td height="1" bgcolor="' . BG_1 . '" width="100%" colspan="4"></td>
        </tr>
        <tr><td height="15"></td></tr>';
            echo '<tr>
							<td valign="top" width="180">';
            if (mysql_num_rows($ergebnis)) {
                $ds = mysql_fetch_array($ergebnis);
                if (!$id) {
                    $id = $ds['cashID'];
                }
                $ergebnis = safe_query("SELECT * FROM " . PREFIX . "cash_box WHERE cashID='{$id}'");
                $ds = mysql_fetch_array($ergebnis);
                $date = date("d.m.Y", $ds['date']);
                $paydate = date("d.m.Y", $ds['paydate']);
                $bezahlen = safe_query("SELECT * FROM " . PREFIX . "cash_box_payed WHERE cashID='{$id}' AND payed='1' ");
                $payed = mysql_num_rows($bezahlen);
                $konto = cleartext($ds['konto']);
                $usage = $ds['usedfor'];
                if (iscashadmin($userID)) {
                    $adminaction = '<input type="button" onclick="MM_goToURL(\'parent\',\'index.php?site=cash_box&amp;action=edit&amp;id=' . $id . '\');return document.MM_returnValue" value="' . $_language->module['edit'] . '" /> <input type="button" onclick="MM_confirm(\'' . $_language->module['really_delete'] . '\', \'cash_box.php?delete=true&amp;id=' . $id . '\')" value="' . $_language->module['delete'] . '" />';
                }
                eval("\$cash_box_usage = \"" . gettemplate("cash_box_usage") . "\";");
                echo $cash_box_usage;
                $all = safe_query("SELECT * FROM " . PREFIX . "cash_box WHERE squad='" . $squadID . "' ORDER BY paydate DESC");
                echo '<br /><br />';
                while ($ds = mysql_fetch_array($all)) {
                    echo '&#8226; <a href="index.php?site=cash_box&amp;id=' . $ds['cashID'] . '&amp;squad=' . $squadID . '"><b>' . $ds['usedfor'] . '</b></a><br />';
                }
                echo '</td><td width="10">&nbsp;</td>
					<td valign="top">';
                $members = array();
                $ergebnis = safe_query("SELECT * FROM " . PREFIX . "user ORDER BY nickname");
                while ($du = mysql_fetch_array($ergebnis)) {
                    if ($squadID == 0) {
                        if (isclanmember($du['userID'], $squadID)) {
                            $members[] = $du['userID'];
                        }
                    } else {
                        if (issquadmember($du['userID'], $squadID)) {
                            $members[] = $du['userID'];
                        }
                    }
                }
                eval("\$cash_box_head = \"" . gettemplate("cash_box_head") . "\";");
                echo $cash_box_head;
                if (count($members)) {
                    foreach ($members as $usID) {
                        $ergebnis = safe_query("SELECT * FROM " . PREFIX . "cash_box_payed WHERE userID='{$usID}' AND cashID='{$id}'");
                        $du = mysql_fetch_array($ergebnis);
                        $user = '<a href="index.php?site=profile&amp;id=' . $usID . '"><b>' . getnickname($usID) . '</b></a>';
                        if ($du['payed']) {
                            $paydate = date("d.m.Y", $du['date']);
                            $payed = '<font color="' . $wincolor . '">' . $_language->module['paid'] . ': ' . $paydate . '</font>';
//.........这里部分代码省略.........
开发者ID:Blaz3r,项目名称:webSPELL,代码行数:101,代码来源:cash_box.php

示例13: showtopic


//.........这里部分代码省略.........
                echo $forum_edittopic;
            } else {
                // notification check
                $notifyqry = safe_query("SELECT * FROM " . PREFIX . "forum_notify WHERE topicID='" . $topic . "' AND userID='" . $userID . "'");
                if (mysql_num_rows($notifyqry)) {
                    $notify = '<input class="input" type="checkbox" name="notify" value="1" checked="checked" /> ' . $_language->module['notify_reply'];
                } else {
                    $notify = '<input class="input" type="checkbox" name="notify" value="1" /> ' . $_language->module['notify_reply'];
                }
                //STICKY
                if (isforumadmin($userID) || ismoderator($userID, $board)) {
                    $chk_sticky = '<br />' . "\n" . ' <input class="input" type="checkbox" name="sticky" value="1" ' . $_sticky . ' /> ' . $_language->module['make_sticky'];
                } else {
                    $chk_sticky = '';
                }
                $dr['message'] = getinput($dr['message']);
                eval("\$addbbcode = \"" . gettemplate("addbbcode") . "\";");
                eval("\$forum_editpost = \"" . gettemplate("forum_editpost") . "\";");
                echo $forum_editpost;
            }
        } else {
            echo $_language->module['permission_denied'] . '<br /><br />';
        }
        $replys = safe_query("SELECT * FROM " . PREFIX . "forum_posts WHERE topicID='{$topic}' ORDER BY date DESC LIMIT {$start}, {$max}");
    } elseif ($addreply && !$dt['closed']) {
        if ($loggedin and $writer) {
            if (isset($_POST['preview'])) {
                $bg1 = BG_1;
                $bg2 = BG_2;
                $time = date("H:i", time());
                $date = $_language->module['today'];
                $message_preview = getforminput($_POST['message']);
                $postID = 0;
                $message = cleartext(getforminput($_POST['message']));
                $message = toggle($message, 'xx');
                $username = '<a href="index.php?site=profile&amp;id=' . $userID . '"><b>' . getnickname($userID) . '</b></a>';
                if (isclanmember($userID)) {
                    $member = ' <img src="images/icons/member.gif" alt="' . $_language->module['clanmember'] . '" />';
                } else {
                    $member = '';
                }
                if ($getavatar = getavatar($userID)) {
                    $avatar = '<img src="images/avatars/' . $getavatar . '" alt="" />';
                } else {
                    $avatar = '';
                }
                if ($getsignatur = getsignatur($userID)) {
                    $signatur = cleartext($getsignatur);
                } else {
                    $signatur = '';
                }
                if ($getemail = getemail($userID) and !getemailhide($userID)) {
                    $email = '<a href="mailto:' . mail_protect($getemail) . '"><img src="images/icons/email.gif" border="0" alt="email" /></a>';
                } else {
                    $email = '';
                }
                if (isset($_POST['notify'])) {
                    $notify = 'checked="checked"';
                } else {
                    $notify = '';
                }
                $pm = '';
                $buddy = '';
                $statuspic = '<img src="images/icons/online.gif" alt="online" />';
                if (!validate_url(gethomepage($userID))) {
                    $hp = '';
开发者ID:Blaz3r,项目名称:webSPELL,代码行数:67,代码来源:forum_topic.php

示例14: str_replace

        }
        $sem = '/[0-9]{6,11}/si';
        $icq_number = str_replace('-', '', $ds['icq']);
        if (preg_match($sem, $ds['icq'])) {
            $icq = '<a href="http://www.icq.com/people/about_me.php?uin=' . $icq_number . '" target="_blank"><img src="http://online.mirabilis.com/scripts/online.dll?icq=' . $ds['icq'] . '&amp;img=5" border="0" alt="icq" /></a>';
        } else {
            $icq = "";
        }
        $guestbookID = 'id_' . $ds['gbID'];
        $name = strip_tags($ds['name']);
        $message = cleartext($ds['comment']);
        $message = toggle($message, $ds['gbID']);
        unset($admincomment);
        if ($ds['admincomment'] != "") {
            $admincomment = '<hr />
			<small><b>' . $_language->module['admin_comment'] . ':</b><br />' . cleartext($ds['admincomment']) . '</small>';
        } else {
            $admincomment = '';
        }
        $actions = '';
        $ip = 'logged';
        $quote = '<a href="index.php?site=guestbook&amp;action=add&amp;messageID=' . $ds['gbID'] . '"><img src="images/icons/quote.gif" border="0" alt="quote" /></a>';
        if (isfeedbackadmin($userID)) {
            $actions = ' <a href="index.php?site=guestbook&amp;action=comment&amp;guestbookID=' . $ds['gbID'] . '"><img src="images/icons/admincomment.gif" border="0" alt="Admincomment" /></a> <input class="input" type="checkbox" name="gbID[]" value="' . $ds['gbID'] . '" />';
            $ip = $ds['ip'];
        }
        eval("\$guestbook = \"" . gettemplate("guestbook") . "\";");
        echo $guestbook;
        if ($type == "DESC") {
            $n--;
        } else {
开发者ID:Talfagoron,项目名称:webSPELL-1,代码行数:31,代码来源:guestbook.php

示例15: explode

 if ($ds['readgrps'] != "") {
     $usergrps = explode(";", $ds['readgrps']);
     $usergrp = 0;
     foreach ($usergrps as $value) {
         if (isinusergrp($value, $userID)) {
             $usergrp = 1;
             break;
         }
     }
     if (!$usergrp and !ismoderator($userID, $ds['boardID'])) {
         continue;
     }
 }
 $topicID = $ds['topicID'];
 $res_title[$i] = getinput($ds['topicname']);
 $res_message[$i] = cleartext($ds['message'], false);
 $res_link[$i] = '<a href="index.php?site=forum_topic&amp;topic=' . $topicID . '">' . $_language->module['forum_link'] . '</a>';
 $res_occurr[$i] = substr_count(strtolower($ds['message']), strtolower(stripslashes($text))) + substr_count(strtolower($ds['topic']), strtolower(stripslashes($text)));
 $res_date[$i] = $ds['date'];
 $res_type[$i] = $_language->module['forum'];
 if (isset($alreadythere)) {
     unset($alreadythere);
 }
 $key = array_search($res_link[$i], $res_link);
 if ($key !== null && $key !== false) {
     if ($key != $i) {
         $res_occurr[$key] += $res_occurr[$i];
         $alreadythere = true;
     }
 }
 if (isset($alreadythere)) {
开发者ID:Blaz3r,项目名称:webSPELL,代码行数:31,代码来源:search.php


注:本文中的cleartext函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。