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


PHP func::chk_img_path方法代码示例

本文整理汇总了PHP中func::chk_img_path方法的典型用法代码示例。如果您正苦于以下问题:PHP func::chk_img_path方法的具体用法?PHP func::chk_img_path怎么用?PHP func::chk_img_path使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在func的用法示例。


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

示例1: getuserinfo

function getuserinfo($userid)
{
    global $db, $cfg;
    $row_poster = $db->qry_first("SELECT username, type, avatar_path, signature FROM %prefix%user WHERE userid=%int%", $userid);
    $count_rows = $db->qry_first("SELECT COUNT(*) AS posts FROM %prefix%board_posts WHERE userid = %int%", $userid);
    $html_image = '<img src="%s" alt="%s" border="0">';
    $user["username"] = $row_poster["username"];
    $user["avatar"] = func::chk_img_path($row_poster["avatar_path"]) ? sprintf($html_image, $row_poster["avatar_path"], "") : "";
    $user["signature"] = $row_poster["signature"];
    if ($cfg['board_ranking'] == TRUE) {
        $user["rank"] = getboardrank($count_rows["posts"]);
    }
    $user["posts"] = $count_rows["posts"];
    switch ($row_poster["type"]) {
        case 1:
            $user["type"] = t('Benutzer');
            break;
        case 2:
            $user["type"] = t('Organisator');
            break;
        case 3:
            $user["type"] = t('Superadmin');
            break;
    }
    return $user;
}
开发者ID:eistr2n,项目名称:lansuite,代码行数:26,代码来源:thread.php

示例2: FetchDataRow

function FetchDataRow($username)
{
    global $func, $dsp, $line;
    $html_image = '<img src="%s" alt="%s" border="0">';
    $avatar = func::chk_img_path($line['avatar_path']) ? sprintf($html_image, $line['avatar_path'], t('Avatar')) : '';
    if ($line['userid']) {
        $ret .= $dsp->FetchUserIcon($line['userid'], $username);
    } else {
        $ret = '<i>' . t('Gast') . '</i>';
    }
    $ret .= HTML_NEWLINE;
    $ret .= $func->unixstamp2date($line['date'], datetime) . HTML_NEWLINE;
    if ($avatar) {
        $ret .= $avatar . HTML_NEWLINE;
    }
    return $ret;
}
开发者ID:eistr2n,项目名称:lansuite,代码行数:17,代码来源:class_mastercomment.php

示例3: sprintf

            case 'it':
                $GCountry = 'Italy';
                break;
            case 'fr':
                $GCountry = 'France';
                break;
            default:
                $GCountry = 'Germany';
                break;
        }
        $text = "<b>{$row['username']}</b>";
        if ($cfg['guestlist_shownames']) {
            $text .= "<br>{$row['firstname']} {$row['name']}";
        }
        $text .= "<br>{$row['plz']} {$row['city']}";
        if (func::chk_img_path($row['avatar_path'])) {
            $text .= '<br>' . sprintf('<img src=\\"%s\\" alt=\\"%s\\" border=\\"0\\">', $row["avatar_path"], '');
        }
        $adresses .= "showAddress('{$GCountry}', '{$row['city']}', '{$row['plz']}', '{$row['street']}', '{$row['hnr']}', '{$text}');\r\n";
    }
    $db->free_result($haus_data);
    $smarty->assign('adresses', $adresses);
    $smarty->assign('apikey', $cfg['google_maps_api_key']);
    $dsp->AddSingleRow($smarty->fetch('modules/guestlist/templates/googlemaps.htm'));
    //}
    // Use Geofreedb
} else {
    $res = $db->qry("SELECT plz FROM %prefix%user LEFT JOIN %prefix%party_user ON userid = user_id WHERE (plz > 0) AND (party_id = %int%)", $party->party_id);
    $res3 = $db->qry_first("SELECT laenge, breite FROM %prefix%locations WHERE plz = %int%", $_SESSION['party_info']['partyplz']);
    $pi = pi();
    if ($db->num_rows($res) == 0) {
开发者ID:eistr2n,项目名称:lansuite,代码行数:31,代码来源:usermap.php

示例4: t

     if ($auth['type'] >= 3) {
         $ms2->AddIconField('delete', 'index.php?mod=clanmgr&step=20&clanid=', t('Löschen'));
     }
     if ($auth['type'] >= 3) {
         $ms2->AddMultiSelectAction(t('Löschen'), 'index.php?mod=clanmgr&step=20', 1);
     }
     $ms2->PrintSearch('index.php?mod=clanmgr', 'c.clanid');
     if ($auth['type'] >= 1) {
         $dsp->AddSingleRow($dsp->FetchSpanButton(t('Hinzufügen'), 'index.php?mod=clanmgr&step=30'));
     }
     break;
     // Details
 // Details
 case 2:
     $row = $db->qry_first('SELECT name, url, clanlogo_path FROM %prefix%clan WHERE clanid = %int%', $_GET['clanid']);
     if (func::chk_img_path($row['clanlogo_path'])) {
         $dsp->AddDoubleRow(t(''), '<img src="' . $row['clanlogo_path'] . '" alt="' . $row['name'] . '">');
     }
     $dsp->AddDoubleRow(t('Clan'), $row['name']);
     if (stristr($row['url'], 'http://') === FALSE) {
         $row['url'] = "http://" . $row['url'];
     }
     $dsp->AddDoubleRow(t('Webseite'), '<a href="' . $row['url'] . '" target="_blank">' . $row['url'] . '</a>');
     $buttons = '';
     if ($auth['type'] >= 1 and $auth['clanid'] != $_GET['clanid']) {
         $buttons .= $dsp->FetchSpanButton(t('Clan beitreten'), 'index.php?mod=' . $_GET['mod'] . '&step=60&clanid=' . $_GET['clanid']) . ' ';
     }
     if ($auth['type'] >= 1 and $auth['clanid'] == $_GET['clanid']) {
         $buttons .= $dsp->FetchSpanButton(t('Clan verlassen'), 'index.php?mod=' . $_GET['mod'] . '&step=40&clanid=' . $_GET['clanid'] . '&userid=' . $auth['userid']) . ' ';
     }
     if ($auth['type'] >= 1 and $auth['clanid'] == $_GET['clanid'] and $auth['clanadmin'] == 1 or $auth['type'] >= 2) {
开发者ID:eistr2n,项目名称:lansuite,代码行数:31,代码来源:clanmgr.php

示例5: GetTypeDescription

 $dsp->AddDoubleRow(t('Benutzertyp'), GetTypeDescription($user_data['type']));
 // Perso
 if ($user_data['perso'] and ($auth['type'] >= 2 or $auth['userid'] == $_GET['userid'] and $cfg['user_showownstreet'] == '1')) {
     $dsp->AddDoubleRow(t('Passnummer / Sonstiges'), $user_data['perso'] . '<br>' . t('Hinweis: Die Angaben zu Straße und Passnummer sind nur für dich und die Organisatoren sichtbar.'));
 }
 // Birthday
 if ($cfg['sys_internet'] == 0 or $auth['type'] >= 2 or $auth['userid'] == $_GET['userid']) {
     $dsp->AddDoubleRow("Geburtstag", (int) $user_data['birthday'] ? $func->unixstamp2date($user_data['birthday'], 'date') . ' (' . $user_data['age'] . ')' : t('Nicht angegeben'));
 }
 // Gender
 $geschlecht[0] = t('Nicht angegeben');
 $geschlecht[1] = t('Männlich');
 $geschlecht[2] = t('Weiblich');
 $dsp->AddDoubleRow(t('Geschlecht'), $geschlecht[$user_data['sex']]);
 // Picture
 if (func::chk_img_path($user_data['picture'])) {
     $dsp->AddDoubleRow(t('Benutzerbild'), '<img src="' . $user_data['picture'] . '">');
 }
 // Comment
 $dsp->AddDoubleRow(t('Kommentar'), $user_data['comment'] == "" ? "" : $func->text2html($user_data['comment']));
 $dsp->AddFieldsetEnd();
 $plugin = new plugin('usrmgr_details_main');
 while (list($caption, $inc) = $plugin->fetch()) {
     $dsp->AddFieldsetStart($caption);
     include_once $inc;
     $dsp->AddFieldsetEnd();
 }
 $dsp->EndTab();
 $dsp->StartTab(t('Lesezeichen'), 'details');
 $dsp->AddFieldsetStart(t('In Kommentaren'));
 switch ($_GET['step']) {
开发者ID:eistr2n,项目名称:lansuite,代码行数:31,代码来源:details.php

示例6: DrawPlan


//.........这里部分代码省略.........
                           case 2:
                               // Seat only changeble, if noone sits there
                               if ($seat_state[$y][$x] > 1 and $seat_state[$y][$x] < 7) {
                                   $link = "javascript:alert(\"" . t('Es können nur freie Sitzplätze geändert werden') . "\")";
                               } else {
                                   $link = "javascript:ChangeSeatingPlan(\"cell" . ($x * 100 + $y) . "\", {$XOffset}, {$YOffset})";
                               }
                               break;
                       }
                       // Generate popup
                       if ($seat_state[$y][$x] == 2 and $seat_userid[$y][$x] == $auth['userid']) {
                           $s_state = 8;
                       } elseif ($seat_state[$y][$x] == 2 and in_array($seat_userid[$y][$x], $my_clanmates)) {
                           $s_state = 9;
                       } else {
                           $s_state = $seat_state[$y][$x];
                       }
                       if ($seat_ip[$y][$x] == '') {
                           $seat_ip[$y][$x] = '<i>' . t('Keine zugeordnet') . '</i>';
                       }
                       $tooltip = '';
                       switch ($s_state) {
                           case "2":
                           case "3":
                           case "8":
                           case "9":
                               $tooltip .= t('Block') . ': ' . $this->CoordinateToBlockAndName($x + 1, $y, $blockid) . HTML_NEWLINE;
                               $tooltip .= t('Benutzername') . ': ' . $user_info[$y][$x]['username'] . HTML_NEWLINE;
                               if (!$cfg['sys_internet'] or $auth['type'] > 1 or $auth['userid'] == $selected_user and $selected_user != false) {
                                   $tooltip .= t('Name') . ': ' . trim($user_info[$y][$x]['firstname']) . ' ' . trim($user_info[$y][$x]['name']) . HTML_NEWLINE;
                               }
                               $tooltip .= t('Clan') . ': ' . $user_info[$y][$x]['clan'] . HTML_NEWLINE;
                               $tooltip .= t('IP') . ': ' . $seat_ip[$y][$x] . HTML_NEWLINE;
                               if (func::chk_img_path($user_info[$y][$x]['avatar_path']) and ($cfg['seating_show_user_pics'] or !$cfg['sys_internet'] or $auth['type'] > 1 or $auth['userid'] == $selected_user and $selected_user != false)) {
                                   $tooltip .= '<img src=&quot;' . $user_info[$y][$x]['avatar_path'] . '&quot; style=&quot;max-width:100%;&quot; />' . HTML_NEWLINE;
                               }
                               break;
                           case "1":
                               $tooltip .= t('Block') . ': ' . $this->CoordinateToBlockAndName($x + 1, $y, $blockid) . ' ' . t('Frei') . HTML_NEWLINE;
                               $tooltip .= t('IP') . ': ' . $seat_ip[$y][$x] . HTML_NEWLINE;
                               break;
                           case "7":
                               $tooltip .= t('Block') . ': ' . $this->CoordinateToBlockAndName($x + 1, $y, $blockid) . ' ' . t('Gesperrt') . HTML_NEWLINE;
                               $tooltip .= t('IP') . ': ' . $seat_ip[$y][$x] . HTML_NEWLINE;
                               break;
                           case "80":
                           case "81":
                               $tooltip .= t('Block') . ': ' . $this->CoordinateToBlockAndName($x + 1, $y, $blockid) . HTML_NEWLINE;
                               $tooltip .= t('Beschreibung') . ': ' . t('WC') . HTML_NEWLINE;
                               break;
                           case "82":
                               $tooltip .= t('Block') . ': ' . $this->CoordinateToBlockAndName($x + 1, $y, $blockid) . HTML_NEWLINE;
                               $tooltip .= t('Beschreibung') . ': ' . t('Notausgang') . HTML_NEWLINE;
                               break;
                           case "83":
                               $tooltip .= t('Block') . ': ' . $this->CoordinateToBlockAndName($x + 1, $y, $blockid) . HTML_NEWLINE;
                               $tooltip .= t('Beschreibung') . ': ' . t('Catering') . HTML_NEWLINE;
                               break;
                       }
                       $tooltip = addslashes($tooltip);
                       // Set seat image
                       $body[$y]['line'][$x]['img_name'] = '';
                       switch ($seat_state[$y][$x]) {
                           case 0:
                           case 100:
                               if ($mode == 1) {
开发者ID:eistr2n,项目名称:lansuite,代码行数:67,代码来源:class_seat.php


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