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


PHP items函数代码示例

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


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

示例1: getContent

 public function getContent()
 {
     // User is logged in
     if (LOGGED) {
         $this->subcodename = 'logged';
         $tpl = new PHPTAL('blocks/user_panel/logged.html');
         $tpl->user = User::format(User::$id, User::$nickname, User::$groupId);
         $pm_item = User::$pmNew ? array(t('Messages <strong>(New: %new)</strong>', array('%new' => $user->pm_new)), 'pm/inbox') : array(t('Messages'), 'pm');
         $tpl->items = items(array($pm_item[0] => HREF . $pm_item[1], t('Administration') => HREF . 'admin', t('Edit profile') => HREF . 'edit_profile', t('Log out') => HREF . 'logout'));
         return $tpl->execute();
     } else {
         $err = new Error();
         $note = new Notifier('note-user_panel');
         $this->subcodename = 'not_logged';
         $form = array('logname' => null, 'password' => null);
         if ($_POST['login'] && $_POST['user_panel']) {
             $form['logname'] = $_POST['logname-session'] ? filter($_POST['logname-session'], 100) : '';
             $form['password'] = $_POST['password-session'] ? $_POST['password-session'] : '';
             $err->setError('logname_empty', t('Logname field is required.'))->condition(!$form['logname']);
             $err->setError('logname_not_exists', t('Entered logname is not registered.'))->condition(!User::loginNameRegistered($form['logname']));
             $err->setError('password_empty', t('Password field is required.'))->condition(!$form['password']);
             $err->setError('password_incorrect', t('ERROR_PASS_INCORRECT'))->condition($form['password'] && !User::loginPasswordCorrect($form['password']));
             if ($err->noErrors()) {
                 redirect('./');
             } else {
                 $note->error($err->toArray());
             }
         }
         $tpl = new PHPTAL('blocks/user_panel/not_logged.html');
         $tpl->note = $note;
         $tpl->form = $form;
         $tpl->err = $err->toArray();
         return $tpl->execute();
     }
 }
开发者ID:rafalenden,项目名称:KioCMS,代码行数:35,代码来源:user_panel.block.php

示例2: users

function users($url, $key, $count = 20)
{
    global $users;
    $url = sprintf('http://feeds.delicious.com/v2/rss/url/%s?count=%d', md5($url), $count);
    foreach (items($url) as $item) {
        $user = (string) current($item->xpath('dc:creator'));
        $users[$user]++;
    }
}
开发者ID:hubgit,项目名称:groupthunk,代码行数:9,代码来源:update.php

示例3: getContent

    public function getContent()
    {
        global $sql;
        $stmt = $sql->setCache('new_users')->query('
			SELECT id, nickname, registered
			FROM ' . DB_PREFIX . 'users
			ORDER BY id DESC
			LIMIT 10');
        if ($stmt) {
            $items = array();
            while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
                $items[$row['nickname']] = array(HREF . 'profile/' . $row['id'] . '/' . clean_url($row['nickname']), clock($row['registered']));
            }
            return items($items);
        } else {
            return t('There is no content to display.');
        }
    }
开发者ID:rafalenden,项目名称:KioCMS,代码行数:18,代码来源:new_users.block.php

示例4: getContent

    public function getContent()
    {
        global $sql;
        $stmt = $sql->setCache('news_categories')->query('
			SELECT *
			FROM ' . DB_PREFIX . 'news_categories
			ORDER BY name
			LIMIT 10');
        if ($stmt) {
            $items = array();
            while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
                $items[$row['name'] . ' (' . $row['entries'] . ')'] = array(HREF . 'news/category/' . $row['id'] . '/' . clean_url($row['name']), $row['description'] ? $row['description'] : t('Entries marked as %category', array('%category' => $row['name'])));
            }
            return $this->content = items($items);
        } else {
            return $this->content = t('There is no content to display.');
        }
    }
开发者ID:rafalenden,项目名称:KioCMS,代码行数:18,代码来源:news_categories.block.php

示例5: ini_set

    ini_set('error_prepend_string', null);
    ini_set('error_append_string', null);
}
$users = new usersMenus();
if (!$users->AsMailBoxAdministrator) {
    $tpl = new templates();
    $error = $tpl->javascript_parse_text("{ERROR_NO_PRIVS}");
    echo "alert('{$error}')";
    die;
}
if (isset($_GET["list-domains"])) {
    list_domains();
    exit;
}
if (isset($_GET["items-list"])) {
    items();
    exit;
}
if (isset($_POST["DeleteRealMailBox"])) {
    DeleteRealMailBox();
    exit;
}
page();
function page()
{
    $tpl = new templates();
    $sock = new sockets();
    $ID = $_GET["ID"];
    if (!is_numeric($ID)) {
        $ID = 0;
    }
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:31,代码来源:cyrus.mailboxes.php

示例6: usersMenus

	include_once('ressources/class.dansguardian.inc');
	include_once('ressources/class.squid.inc');
	include_once('ressources/class.ActiveDirectory.inc');
	
	
	
$usersmenus=new usersMenus();
if(!$usersmenus->AsDansGuardianAdministrator){
	$tpl=new templates();
	$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
	echo "<H2>$alert</H2>";
	die();	
}

if(isset($_GET["popup"])){popup();exit;}
if(isset($_GET["list"])){items();exit;}
js();

function js(){
	$tpl=new templates();
	$page=CurrentPageName();
	$title=$tpl->_ENGINE_parse_body("{browsers}");
	$html="YahooWinBrowse('650','$page?popup=yes&ShowOnly={$_GET["ShowOnly"]}','$title')";
	echo $html;
	
}

function popup(){
	
	$page=CurrentPageName();
	$tpl=new templates();
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:31,代码来源:squid.browsers.php

示例7: foreach

<div class="left">

<?php 
echo '<ul class="letters">';
foreach (array_merge(range('A', 'Z'), array('0-9')) as $l) {
    echo '<li' . (isset($_GET['firstchar']) && $_GET['firstchar'] == $l ? ' class="active"' : '') . '><a href="' . tlink('stores', 'firstchar=' . $l) . '">' . $l . '</a></li>';
}
echo '<li><a href="' . tlink('stores') . '">ALL</a></li>';
echo '</ul>';
echo '<div class="title">
  <span style="color: #efefef;">' . ($items = (int) have_items(array('firstchar' => isset($_GET['firstchar']) ? $_GET['firstchar'] : ''))) . '</span> Stores/Brands
</div>';
if ($items) {
    foreach (items(array('firstchar' => isset($_GET['firstchar']) ? $_GET['firstchar'] : '')) as $item) {
        echo '<article class="array_item">

<div class="table">

<div class="left">
<img src="' . store_avatar($item->image) . '" alt="">
<span class="rating"><span style="width:' . $item->stars * 16 . 'px;"></span></span>
<a href="' . $item->reviews_link . '">' . $item->reviews . ' reviews</a>
</div>

<div class="right">
<a href="' . $item->link . '" class="title">' . $item->name . '</a>
<div class="description">' . (!empty($item->description) ? nl2br($item->description) : 'no description') . '</div>

<ul class="details">
<li>Coupons/Deals: <b>' . $item->coupons . '</b></li>';
        if (theme_has_products()) {
开发者ID:hzhou9,项目名称:coupon_deal,代码行数:31,代码来源:stores.php

示例8: include_once

<?php
$GLOBALS["ICON_FAMILY"]="SYSTEM";
//ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null);
if(isset($_GET["verbose"])){$GLOBALS["VERBOSE"]=true;ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null);}
include_once('ressources/class.templates.inc');
include_once('ressources/class.ldap.inc');
include_once('ressources/class.users.menus.inc');
include_once('ressources/class.mysql.shorewall.inc');
include_once('ressources/class.system.nics.inc');
$usersmenus=new usersMenus();
if(!$usersmenus->AsArticaAdministrator){die();}	
if(isset($_GET["item-js"])){item_js();exit;}
if(isset($_GET["item-popup"])){item_popup();exit;}
if(isset($_GET["items"])){items();exit;}
if(isset($_GET["delete-js"])){items_delete_js();exit;}
if(isset($_POST["delete"])){items_delete();exit;}
if(isset($_GET["move-item-js"])){move_items_js();exit;}
if(isset($_POST["move-item"])){move_items();exit;}
if(isset($_POST["ID"])){save();exit;}
table();

function move_items_js(){
	$page=CurrentPageName();
	$tpl=new templates();
	header("content-type: application/x-javascript");
	$t=time();

$html="
var xSave$t= function (obj) {
	var results=obj.responseText;
	if(results.length>3){ alert(results); return; }
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:31,代码来源:squid.webauth.hotspots.php

示例9: write_review_form

</ul>

<input type="text" value="' . $item->link . '" onclick="$(this).select();" />

</div>

</div>

</article>';
    if (me()) {
        echo '<a href="#" class="btn write_review"' . ($_SERVER['REQUEST_METHOD'] == 'POST' ? ' style="display: none;"' : '') . '>Write Review</a>';
        echo '<div' . ($_SERVER['REQUEST_METHOD'] != 'POST' ? ' style="display: none;"' : '') . '>' . write_review_form() . '</div>';
    }
    echo '<div class="text-tit" style="margin-top: 15px;">Reviews for ' . $item->name . ':</div>';
    if (have_items()) {
        foreach (items(array('orderby' => 'date desc')) as $review) {
            echo '<article class="array_item">

<div class="table">

<div class="left">
<img src="' . user_avatar($review->user_avatar) . '" alt="" style="width: 60px; height: 60px;" />
<span class="rating"><span style="width:' . $review->stars * 16 . 'px;"></span></span>
</div>

<div class="right">
<div class="title">' . $review->user_name . '</div>
<div class="time">Added ' . date('m/d/Y', $wdate = strtotime($review->date)) . ', ' . timeago($wdate, 'seconds') . ' ago</div>
<div class="description">' . $review->text . '</div>
</div>
开发者ID:hzhou9,项目名称:coupon_deal,代码行数:30,代码来源:reviews.php

示例10: admin_main

/**
 * main function. checks for authorization and renders the
 * required admin section.
 */
function admin_main($authorised)
{
    echo "\n<div id=\"channel_admin\" class=\"frame\">";
    if ($authorised) {
        admin_menu();
        if (array_key_exists(CST_ADMIN_DOMAIN, $_REQUEST)) {
            switch ($_REQUEST[CST_ADMIN_DOMAIN]) {
                case CST_ADMIN_DOMAIN_FOLDER:
                    $show = folder_admin();
                    break;
                case CST_ADMIN_DOMAIN_CHANNEL:
                    $show = channel_admin();
                    break;
                case CST_ADMIN_DOMAIN_CONFIG:
                    $show = config_admin();
                    break;
                case CST_ADMIN_DOMAIN_ITEM:
                    $show = item_admin();
                    break;
                case CST_ADMIN_DOMAIN_PLUGINS:
                    $show = plugins_admin();
                    break;
                case CST_ADMIN_DOMAIN_THEMES:
                    $show = themes_admin();
                    break;
                case CST_ADMIN_DOMAIN_TAGS:
                    $show = tags_admin();
                    break;
                case CST_ADMIN_DOMAIN_PLUGIN_OPTIONS:
                    $show = plugin_options_admin();
                    break;
                case CST_ADMIN_DOMAIN_THEME_OPTIONS:
                    $show = theme_options_admin();
                    break;
                default:
                    break;
            }
        }
        if (array_key_exists(CST_ADMIN_VIEW, $_REQUEST) || isset($show)) {
            if (!isset($show)) {
                $show = $_REQUEST[CST_ADMIN_VIEW];
            }
            switch ($show) {
                case CST_ADMIN_DOMAIN_CONFIG:
                    config();
                    break;
                case CST_ADMIN_DOMAIN_CHANNEL:
                    channels();
                    break;
                case CST_ADMIN_DOMAIN_FOLDER:
                    folders();
                    break;
                case CST_ADMIN_DOMAIN_OPML:
                    opml();
                    break;
                case CST_ADMIN_DOMAIN_NONE:
                    break;
                case CST_ADMIN_DOMAIN_ITEM:
                    items();
                    break;
                case CST_ADMIN_DOMAIN_SYSINFO:
                    sysinfo();
                    break;
                case CST_ADMIN_DOMAIN_DASHBOARD:
                    dashboard();
                    break;
                case CST_ADMIN_DOMAIN_PLUGINS:
                    plugins();
                    break;
                case CST_ADMIN_DOMAIN_THEMES:
                    themes();
                    break;
                case CST_ADMIN_DOMAIN_TAGS:
                    tags();
                    break;
                case CST_ADMIN_DOMAIN_PLUGIN_OPTIONS:
                    plugin_options();
                    break;
                case CST_ADMIN_DOMAIN_THEME_OPTIONS:
                    theme_options();
                    break;
                default:
            }
        } else {
            if (true == getConfig('rss.config.defaultdashboard')) {
                dashboard();
            } else {
                channels();
            }
        }
        echo "\n<div class=\"clearer\"></div>\n";
    } else {
        rss_error(sprintf(__('<h1>Not Authorized!</h1>You are not authorized to access the administration interface. Please follow <a href="%s">this link</a> back to the main page. Have  a nice day!'), getPath()), RSS_ERROR_ERROR, true);
    }
    echo "</div>\n";
}
开发者ID:jphpsf,项目名称:gregarius,代码行数:100,代码来源:index.php

示例11: SMSInstructions

<?php

require_once "../config/mobi_web_constants.php";
require_once PAGE_HEADER;
$sms_instructions = new SMSInstructions(module("People Directory", "Search all or part of a name, email address, or phone number.", "dir", array("Keywords" => items("dir, ppl"), "For help" => items("dir [help]"), "Examples" => items("dir hockfield", "dir 6172531000&shy;", "ppl charles vest"))), module("Shuttle Schedule", "Get an up-to-the-minute schedule by shuttle name or two-letter abbreviation.", "bus", array("Keywords" => items("bus, shuttle"), "For help" => items("bus [help]"), "Examples" => items("bus ce", "bus cambridge east", "bus nw", "bus northwest", "bus bd", "bus boston daytime"), "Route codes" => items("Boston Daytime: BD", "Boston East: BE", "Boston West: BW", "Cambridge East: CE", "Cambridge West: CW", "Northwest Shuttle: NW", "Tech Shuttle: TS"))), module("Stellar", "Get course information and latest announcements by class number.", "cls", array("Keywords" => items("cls, class, stellar"), "For help" => items("cls [help]"), "Examples" => items("cls 6.002", "class 8.03", "stellar 18.06"))), module("Events Calendar", "Get the upcoming events on the MIT calendar.", "events", array("Keywords" => items("events", "cal", "calendar"), "Examples" => items("events", "cal 11pm"))), module("Emergency Info", "Get the latest status on campus emergencies.", "sos", array("Keywords" => items("sos", "emergency"), "Example" => items("sos"))), module("3Down", "Get the latest status on various campus services.", "3dwn", array("Keywords" => items("3dwn", "3down"), "Example" => items("3dwn"))));
if ($page->branch == "Basic" && isset($_REQUEST['module'])) {
    $module = $sms_instructions->getModule($_REQUEST['module']);
    require "{$page->branch}/module.html";
} else {
    require "{$page->branch}/index.html";
}
$page->output();
class SMSInstructions
{
    public $modules;
    public function __construct()
    {
        $this->modules = func_get_args();
    }
    public function getModule($encodedName)
    {
        foreach ($this->modules as $module) {
            if ($module->getEncodedName() == $encodedName) {
                return $module;
            }
        }
    }
}
class Module
{
    public $name;
开发者ID:jamespaulmuir,项目名称:MIT-Mobile-Framework,代码行数:31,代码来源:index.php

示例12: stripslashes

    ?>
				</td>
			</tr>
			<tr bgcolor=#f0f0f0>
				<td style="height:10px;">
					<input type=submit name="Submit" value="Submit">
					<label><input type="checkbox" title="New Window" onclick="document.getElementById('form').target = this.checked ? '_blank' : 'output';"> New Window</label>
				</td>
			</tr>
			<tr>
				<td>
					<iframe src="" name="output" width="100%" height="100%" frameborder=0></iframe>
				</td>
			</tr>
		</table>
	</form>
	<?php 
} else {
    $db->debug = 1;
    $sys->stop(false);
    $_POST['sql'] = stripslashes($_POST['sql']);
    $r = @$db->getAll($_POST['sql']);
    if ($db->resid) {
        echo msg('eksekusi SQL telah berhasil dijalankan dengan affect: ' . items($db->Affected_rows(), 'row'), 'info');
    } else {
        echo msg('eksekusi SQL telah GAGAL dijalankan', 'danger');
    }
    if (count($r) > 0) {
        echo table($r, array_keys($r[0]));
    }
}
开发者ID:bbcdanang,项目名称:tools,代码行数:31,代码来源:MySQL.php

示例13: get_update

</div>

<div style="margin-bottom: 20px;">

<ul class="category">
<li class="active">Coupons</li>';
        if (theme_has_products()) {
            echo '<li><a href="' . get_update(array('page' => 1, 'type' => 'products')) . '">Products</a></li>';
        }
        echo '</ul>';
        if (!empty($category->description)) {
            echo '<article class="array_item category_box" style="border-top: 0;">' . $category->description . '</article>';
        }
        echo '</div>';
        if (results()) {
            foreach (items(array('orderby' => 'active desc')) as $item) {
                echo '<article class="array_item">

<div class="table">

<div class="left">
<img src="' . store_avatar($item->store_img) . '" alt="">
<span class="rating"><span style="width:' . $item->stars * 16 . 'px;"></span></span>
<a href="' . $item->store_reviews_link . '">' . $item->reviews . ' reviews</a>';
                echo !empty($item->cashback) ? '<span class="cashback-points" data-ttip="Great! Use it and you\'ll receive ' . $item->cashback . ' points.">' . $item->cashback . '</span> ' : '';
                echo '</div>

<div class="right">
<a href="' . $item->link . '" class="title">' . $item->title . '</a>
More coupons for <a href="' . $item->store_link . '">' . $item->store_name . '</a>
<div class="description">' . (!empty($item->description) ? nl2br($item->description) : 'no description') . '</div>
开发者ID:hzhou9,项目名称:coupon_deal,代码行数:31,代码来源:category.php

示例14: tAdventure

function tAdventure($start = 0, $pts = 0, $items = array(), $said = false, $name)
{
    if ($start == 0) {
        $rdat["locname"] = "Grand Hallway";
        $rdat["locdesc"] = "The grandest hallway of the entire mansion.";
        $rdat["isItems"] = false;
        $rdat["connectsLeft"] = true;
        $rdat["connectsLeftId"] = 1;
        $rdat["connectsRight"] = true;
        $rdat["connectsRightId"] = 5;
        $rdat["connectsStraight"] = false;
        $rdat["connectsBack"] = false;
    } elseif ($start == 1) {
        $rdat["locname"] = "Bedroom Hallway";
        $rdat["locdesc"] = "The hall with all of the bedrooms.";
        $rdat["isItems"] = true;
        $rdat["items"] = 1;
        $rdat["connectsLeft"] = true;
        $rdat["connectsLeftId"] = 2;
        $rdat["connectsRight"] = false;
        $rdat["connectsStraight"] = true;
        $rdat["connectsStraightId"] = 3;
        $rdat["connectsBack"] = true;
        $rdat["connectsBackId"] = 0;
    } elseif ($start == 2) {
        $rdat["locname"] = "TDLive's Room";
        $rdat["locdesc"] = "TDLive's bedroom.";
        $rdat["isItems"] = true;
        $rdat["items"] = 2;
        $rdat["connectsLeft"] = false;
        $rdat["connectsRight"] = false;
        $rdat["connectsStraight"] = false;
        $rdat["connectsBack"] = true;
        $rdat["connectsBackId"] = 1;
    } elseif ($start == 3) {
        $rdat["locname"] = "{$name}'s Room";
        $rdat["locdesc"] = "Your room!";
        $rdat["isItems"] = false;
        $rdat["connectsLeft"] = true;
        $rdat["connectsLeftId"] = 4;
        $rdat["connectsRight"] = false;
        $rdat["connectsStraight"] = false;
        $rdat["connectsBack"] = true;
        $rdat["connectsBackId"] = 1;
    } elseif ($start == 4) {
        $rdat["locname"] = "{$name}'s Bathroom";
        $rdat["locdesc"] = "Your bathroom!";
        $rdat["isItems"] = true;
        $rdat["items"] = 3;
        $rdat["connectsLeft"] = true;
        $rdat["connectsLeftId"] = 2;
        $rdat["connectsRight"] = false;
        $rdat["connectsStraight"] = false;
        $rdat["connectsBack"] = true;
        $rdat["connectsBackId"] = 3;
    } elseif ($start == 5) {
        $rdat["locname"] = "The Main Hallway";
        $rdat["locdesc"] = "Turn 'left' to start the real game.";
        $rdat["isItems"] = false;
        $rdat["items"] = null;
        $rdat["connectsLeft"] = true;
        $rdat["connectsLeftId"] = 6;
        $rdat["connectsRight"] = false;
        $rdat["connectsStraight"] = false;
        $rdat["connectsBack"] = true;
        $rdat["connectsBackId"] = 0;
    } elseif ($start == 6) {
        if (!$said) {
            echo "\n\nAs you close the door, you realize that \nyou are at the point of no return.\n\n";
        }
        $rdat["locname"] = "The Dungeon";
        $rdat["locdesc"] = "A very dark and dank room. You swear\nthat you can hear breathing in the distance.";
        $rdat["isItems"] = true;
        $rdat["items"] = 4;
        $rdat["connectsLeft"] = false;
        $rdat["connectsRight"] = false;
        $rdat["connectsStraight"] = true;
        $rdat["connectsStraightId"] = 7;
        $rdat["connectsBack"] = false;
    } elseif ($start == 7) {
        $rdat["locname"] = "Cell 1";
        $rdat["locdesc"] = "The first cell in the dungeon. You hear\nmany barks.";
        $rdat["isItems"] = true;
        $rdat["items"] = 5;
        $rdat["connectsLeft"] = false;
        $rdat["connectsRight"] = false;
        $rdat["connectsStraight"] = true;
        $rdat["connectsStraightId"] = 8;
        $rdat["connectsBack"] = true;
        $rdat["connectsBackId"] = 6;
    } elseif ($start == 8) {
        $rdat["locname"] = "Cell 2";
        $rdat["locdesc"] = "The second cell in the dungeon. You hear\nmany barks.";
        $rdat["isItems"] = false;
        $rdat["connectsLeft"] = false;
        $rdat["connectsRight"] = false;
        $rdat["connectsStraight"] = false;
        $rdat["connectsBack"] = true;
        $rdat["connectsBackId"] = 7;
    } else {
//.........这里部分代码省略.........
开发者ID:TDLive,项目名称:pre2013,代码行数:101,代码来源:adventure.php

示例15: array

   "events",
   array(
     "Keywords" => items("events", "cal", "calendar"),
     "Examples" => items("events", "cal 11pm"))),
  module("Emergency Info",
   "Get the latest status on campus emergencies.",
   "sos",
   array(
     "Keywords" => items("sos", "emergency"),
     "Example" => items("sos"))),
  module("3Down",
   "Get the latest status on various campus services.",
   "3dwn",
   array(
     "Keywords" => items("3dwn", "3down"),
     "Example" => items("3dwn")))
);

if($page->branch == "Basic" && isset($_REQUEST['module'])) {
  $module = $sms_instructions->getModule($_REQUEST['module']);
  require "$page->branch/module.html";
} else {
  require "$page->branch/index.html";
}

$page->output();


class SMSInstructions {
  
  public $modules;
开发者ID:roycefu,项目名称:MIT-Mobile-Web,代码行数:31,代码来源:index.php


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