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


PHP getIntFromRequest函数代码示例

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


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

示例1: db_query

        }
        $res = db_query("DELETE FROM trove_group_link WHERE trove_cat_id='{$form_trove_cat_id}'");
        if (!$res) {
            exit_error(_('Error In Trove Operation'), db_error());
        }
        $res = db_query("DELETE FROM trove_cat WHERE trove_cat_id='{$form_trove_cat_id}'");
        if (!$res || db_affected_rows($res) < 1) {
            exit_error(_('Error In Trove Operation'), db_error());
        }
    }
    session_redirect("/admin/trove/trove_cat_list.php");
}
/*
	Main Code
*/
$trove_cat_id = getIntFromRequest("trove_cat_id");
$res_cat = db_query("SELECT * FROM trove_cat WHERE trove_cat_id={$trove_cat_id}");
if (db_numrows($res_cat) < 1) {
    exit_error(_('No Such Category, That trove cat does not exist'));
}
$row_cat = db_fetch_array($res_cat);
site_admin_header(array('title' => _('Site Admin: Trove - Edit Category')));
?>

<h3><?php 
echo _('Edit Trove Category');
?>
</h3>

<form action="trove_cat_edit.php" method="post">
开发者ID:neymanna,项目名称:fusionforge,代码行数:30,代码来源:trove_cat_edit.php

示例2: exit_disabled

 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with GForge; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
require_once '../env.inc.php';
require_once $gfwww . 'include/pre.php';
require_once $gfwww . 'admin/admin_utils.php';
if (!$sys_use_project_database) {
    exit_disabled();
}
session_require(array('group' => '1', 'admin_flags' => 'A'));
if (getStringFromRequest('submit')) {
    $group_id = getIntFromRequest('group_id');
    $groupname = getStringFromRequest('groupname');
    $dbname = getStringFromRequest('dbname');
    if ($groupname) {
        $group =& group_get_object_by_name($groupname);
        if (!$group || !is_object($group)) {
            exit_error('Error', 'Could Not Get Group');
        } elseif ($group->isError()) {
            exit_error('Error', $group->getErrorMessage());
        }
        $group_id = $group->getID();
        $user =& session_get_user();
        if (!$user || !is_object($user)) {
            exit_error('Error', 'Could Not Get User');
        } elseif ($user->isError()) {
            exit_error('Error', $u->getErrorMessage());
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:database.php

示例3: getIntFromRequest

 * GForge is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with GForge; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
require_once '../../env.inc.php';
require_once $gfwww . 'include/pre.php';
require_once $gfwww . 'survey/survey_utils.php';
$is_admin_page = 'y';
$group_id = getIntFromRequest('group_id');
$survey_id = getIntFromRequest('survey_id');
$customer_id = getIntFromRequest('customer_id');
survey_header(array('title' => _('Results')));
if (!session_loggedin() || !user_ismember($group_id, 'A')) {
    echo "<h1>" . _('Permission denied') . "</h1>";
    survey_footer(array());
    exit;
}
?>

<form action="none">
<?php 
/*
	Select this survey from the database
*/
$sql = "SELECT * FROM surveys WHERE survey_id='{$survey_id}' AND group_id='{$group_id}'";
$result = db_query($sql);
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:show_results_individual.php

示例4: array

 * or (at your option) any later version.
 *
 * FusionForge is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
$ret = array();
$columns = $taskboard->getColumns();
$ret['message'] = '';
$release = getStringFromRequest('release', NULL);
$assigned_to = getIntFromRequest('assigned_to', NULL);
if (!$assigned_to) {
    $assigned_to = NULL;
}
$user_stories = $taskboard->getUserStories($release, $assigned_to);
$user_stories_tracker = $taskboard->getUserStoriesTrackerID();
$phases = array();
if ($user_stories_tracker) {
    $phases[] = array('id' => 'user-stories', 'title' => _('User stories'));
}
foreach ($columns as $column) {
    $phases[] = array('id' => $column->getID(), 'dom_id' => $column->getDomID(), 'title' => $column->getTitle(), 'titlebackground' => $column->getTitleBackgroundColor(), 'background' => $column->getColumnBackgroundColor(), 'resolutions' => array_values($column->getResolutions()));
}
$ret['user_stories'] = $user_stories;
$ret['phases'] = $phases;
echo json_encode($ret);
开发者ID:vpylypv,项目名称:taskboard,代码行数:31,代码来源:ajax_load_taskboard.php

示例5: db_query

 if ($type == 'package') {
     /*
     	Handle insertion of a new package version
     */
     /*
     	See if the package exists first
     */
     $result = db_query("SELECT * FROM snippet_package WHERE snippet_package_id='{$id}'");
     if (!$result || db_numrows($result) < 1) {
         exit_error(_('Error - snippet_package doesn\'t exist'));
     }
     if (getStringFromRequest('post_changes')) {
         if (!form_key_is_valid(getStringFromRequest('form_key'))) {
             exit_form_double_submit();
         }
         $snippet_package_id = getIntFromRequest('snippet_package_id');
         $changes = getStringFromRequest('changes');
         $version = getStringFromRequest('version');
         /*
         	Create a new snippet entry, then create a new snippet version entry
         */
         if ($changes && $snippet_package_id) {
             /*
             	create the snippet package version
             */
             $sql = "INSERT INTO snippet_package_version " . "(snippet_package_id,changes,version,submitted_by,post_date) " . "VALUES ('{$snippet_package_id}','" . htmlspecialchars($changes) . "','" . htmlspecialchars($version) . "','" . user_getid() . "','" . time() . "')";
             $result = db_query($sql);
             if (!$result) {
                 //error in database
                 $feedback .= _('ERROR DOING SNIPPET PACKAGE VERSION INSERT!');
                 snippet_header(array('title' => _('New snippet package')));
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:addversion.php

示例6: docman_display_documents

/**
 * docman_display_documents - Recursive function to show the documents inside the groups tree
 */
function docman_display_documents(&$nested_groups, &$document_factory, $is_editor, $stateid = 0, $from_admin = false, $parent_group = 0)
{
    global $selected_doc_group_id;
    $selected_doc_group_id = getIntFromRequest('selected_doc_group_id');
    if (!is_array($nested_groups["{$parent_group}"])) {
        return;
    }
    echo "<ul style='list-style-type: none'>";
    $child_count = count($nested_groups["{$parent_group}"]);
    for ($i = 0; $i < $child_count; $i++) {
        $doc_group =& $nested_groups["{$parent_group}"][$i];
        // Display group and subgroups only if it has associated documents
        if ($doc_group->hasDocuments($nested_groups, $document_factory, $stateid)) {
            // Recursive call
            if (($doc_group->getID() == $selected_doc_group_id || $doc_group->hasSubgroup($nested_groups, $selected_doc_group_id)) && (!$stateid || $stateid == @$selected_stateid)) {
                $icon = 'ofolder15.png';
            } else {
                $icon = 'cfolder15.png';
            }
            echo "<li>" . html_image('ic/' . $icon, "15", "13", array("border" => "0")) . " <a href='index.php?group_id=" . $doc_group->Group->getID() . "&selected_doc_group_id=" . $doc_group->getID() . "&amp;language_id=" . @$GLOBALS['selected_language'];
            if ($from_admin && $stateid) {
                // if we're sorting by the state, pass the state as a variable
                echo "&amp;selected_stateid=" . $stateid;
            }
            echo "'>" . $doc_group->getName() . "</a>";
            // display link to add a document to the current group
            echo " &nbsp;&nbsp;&nbsp;&nbsp;<a href='" . ($from_admin ? "../" : "") . "new.php?group_id=" . $doc_group->Group->getID() . "&amp;selected_doc_group=" . $doc_group->getID() . "'>";
            echo html_image('ic/adddoc12.png', "12", "14", array("border" => "0")) . " ";
            echo _('[Add document here]');
            echo "</a>";
            if (($doc_group->getID() == $selected_doc_group_id || $doc_group->hasSubgroup($nested_groups, $selected_doc_group_id)) && (!$stateid || $stateid == @$selected_stateid)) {
                docman_display_documents($nested_groups, $document_factory, $is_editor, $stateid, $from_admin, $doc_group->getID());
            }
        }
        // Display this group's documents
        if (($doc_group->hasSubgroup($nested_groups, $selected_doc_group_id) || $selected_doc_group_id == $doc_group->getID()) && (!$stateid || $stateid == $GLOBALS['selected_stateid'])) {
            // Retrieve all the docs from this category
            if ($stateid) {
                $document_factory->setStateID($stateid);
            }
            $document_factory->setDocGroupID($doc_group->getID());
            $docs = $document_factory->getDocuments();
            if (is_array($docs)) {
                $docs_count = count($docs);
                echo "<ul style='list-style-type: none'>";
                for ($j = 0; $j < $docs_count; $j++) {
                    if ($from_admin) {
                        $link = "index.php?editdoc=1&amp;docid=" . $docs[$j]->getID() . "&amp;group_id=" . $docs[$j]->Group->getID();
                    } else {
                        $link = $docs[$j]->isURL() ? $docs[$j]->getFileName() : "view.php/" . $docs[$j]->Group->getID() . "/" . $docs[$j]->getID() . "/" . $docs[$j]->getFileName();
                    }
                    $tooltip = $docs[$j]->getFileName() . " (" . ($docs[$j]->getUpdated() ? date(_('Y-m-d H:i'), $docs[$j]->getUpdated()) : date(_('Y-m-d H:i'), $docs[$j]->getCreated())) . ") ";
                    if ($docs[$j]->getFilesize() > 1024) {
                        $tooltip .= floor($docs[$j]->getFilesize() / 1024) . "KB";
                    } else {
                        $tooltip .= $docs[$j]->getFilesize() . "B";
                    }
                    $tooltip = htmlspecialchars($tooltip);
                    echo "<li>" . html_image('ic/docman16b.png', "20", "20", array("border" => "0")) . " " . "<a href=\"" . $link . "\" title=\"{$tooltip}\">" . $docs[$j]->getName() . "</a> - " . $tooltip . "</li>" . "(" . $docs[$j]->getFileSize() . " " . _('bytes') . ")";
                    //add description
                    echo "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
                    echo "<i>" . $docs[$j]->getDescription() . "</i>";
                }
                echo "</ul>";
            }
        }
    }
    echo "</ul>\n";
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:72,代码来源:doc_utils.php

示例7: GroupJoinRequest

                    $feedback .= $group->getErrorMessage();
                } else {
                    $gjr = new GroupJoinRequest($group, $form_userid);
                    if (!$gjr || !is_object($gjr) || $gjr->isError()) {
                        $feedback .= 'Error Getting GroupJoinRequest';
                    } else {
                        $gjr->send_accept_mail();
                        $gjr->delete(true);
                    }
                    $feedback = _('User Added Successfully');
                }
            } elseif (getStringFromRequest('rejectpending')) {
                /*
                	reject adding user to this project
                */
                $form_userid = getIntFromRequest('form_userid');
                $gjr = new GroupJoinRequest($group, $form_userid);
                if (!$gjr || !is_object($gjr) || $gjr->isError()) {
                    $feedback .= 'Error Getting GroupJoinRequest';
                } else {
                    if (!$gjr->reject()) {
                        exit_error('Error', $gjr->getErrorMessage());
                    } else {
                        $feedback .= 'Rejected';
                    }
                }
            }
        }
    }
}
$group->clearError();
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:index.php

示例8: session_require

 *
 * SourceForge: Breaking Down the Barriers to Open Source Development
 * Copyright 1999-2001 (c) VA Linux Systems
 * http://sourceforge.net
 *
 * @version   $Id$
 *
 */
require_once '../env.inc.php';
require_once $gfwww . 'include/pre.php';
require_once $gfwww . 'include/graph_lib.php';
// require you to be a member of the sfstats group (group_id = 11084)
session_require(array('group' => $sys_stats_group));
$group_id = getIntFromRequest('group_id');
$year = getIntFromRequest('year');
$monthly = getIntFromRequest('monthly');
if (!$group_id) {
    $group_id = 0;
}
if (!$year) {
    $year = gmstrftime("%Y", time());
}
if ($monthly) {
    $sql = "SELECT month,site_page_views AS site_views,subdomain_views \n\t\tFROM stats_site_months ORDER BY month ASC";
    $grouping = 'Months';
} else {
    $beg_year = date('Y', mktime(0, 0, 0, date('m') - 1, date('d'), date('Y')));
    $beg_month = date('m', mktime(0, 0, 0, date('m') - 1, date('d'), date('Y')));
    $beg_day = date('d', mktime(0, 0, 0, date('m') - 1, date('d'), date('Y')));
    $sql = "SELECT month,day,site_page_views AS site_views,subdomain_views \n\t\tFROM stats_site_vw \n\t\t( month = '{$beg_year}{$beg_month}' AND day >= '{$beg_day}' ) OR ( month > '{$beg_year}{$beg_month}' )\n\t\tORDER BY month ASC, day ASC";
    $grouping = 'Days';
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:views_graph.php

示例9: getIntFromRequest

	Complete OO rewrite by Tim Perdue 12/2002

	Heavy RBAC changes 3/17/2004
*/
require_once '../../env.inc.php';
require_once $gfwww . 'include/pre.php';
require_once $gfwww . 'forum/include/ForumHTML.class.php';
require_once $gfcommon . 'forum/Forum.class.php';
require_once $gfwww . 'forum/admin/ForumAdmin.class.php';
require_once $gfcommon . 'forum/ForumFactory.class.php';
require_once $gfcommon . 'forum/ForumMessageFactory.class.php';
require_once $gfcommon . 'forum/ForumMessage.class.php';
require_once $gfcommon . 'include/TextSanitizer.class.php';
// to make the HTML input by the user safe to store
$group_id = getIntFromRequest('group_id');
$group_forum_id = getIntFromRequest('group_forum_id');
$deleteforum = getStringFromRequest('deleteforum');
$feedback = getStringFromRequest('feedback');
global $HTML;
if ($group_id) {
    //
    //  Set up local objects
    //
    $g =& group_get_object($group_id);
    if (!$g || !is_object($g) || $g->isError()) {
        exit_no_group();
    }
    $p =& $g->getPermission(session_get_user());
    if (!$p || !is_object($p) || $p->isError()) {
        exit_permission_denied();
    }
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:index.php

示例10: _

                         }
                     }
                 }
                 //
                 //	Show just one feedback entry if no errors
                 //
                 if (!$was_error) {
                     $feedback = _('Updated successfully');
                 }
                 include $gfwww . 'tracker/browse.php';
             }
         }
     }
     break;
 case 'monitor':
     $artifact_id = getIntFromRequest('artifact_id');
     if ($artifact_id) {
         $ah = new ArtifactHtml($ath, $artifact_id);
         if (!$ah || !is_object($ah)) {
             exit_error('ERROR', 'Artifact Could Not Be Created');
         } else {
             if ($ah->isError()) {
                 exit_error('ERROR', $ah->getErrorMessage());
             } else {
                 $ah->setMonitor();
                 $feedback = $ah->getErrorMessage();
                 include $gfwww . 'tracker/browse.php';
             }
         }
     } else {
         $at = new ArtifactType($group, $atid);
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:tracker.php

示例11: array

 * by the Free Software Foundation; either version 2 of the License,
 * or (at your option) any later version.
 *
 * FusionForge is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
$ret = array('message' => '', 'action' => 'reload');
$ret['message'] = '';
$tracker_id = getIntFromRequest('tracker_id');
$user_story_id = getIntFromRequest('user_story_id', 0);
$desc = getStringFromRequest('desc', '');
$title = getStringFromRequest('title', '');
$release = getStringFromRequest('release', NULL);
if ($tracker_id && $desc && $title) {
    db_begin();
    $msg = $taskboard->TrackersAdapter->createTask($tracker_id, $title, $desc, $user_story_id, $release);
    if ($msg) {
        $ret['alert'] = $msg;
        db_rollback();
    } else {
        db_commit();
    }
} else {
    $ret['alert'] = _('All fields are mandatory.');
}
开发者ID:vpylypv,项目名称:taskboard,代码行数:31,代码来源:ajax_add.php

示例12: html_get_language_popup

				' . html_get_language_popup('language_id', 1) . '
				</td>
			</tr>
			<tr>
				<td>
				<strong>' . _('Group that document belongs in') . ' :</strong><br />';
    $dgf = new DocumentGroupFactory($g);
    if ($dgf->isError()) {
        exit_error('Error', $dgf->getErrorMessage());
    }
    $dgh = new DocumentGroupHTML($g);
    if ($dgh->isError()) {
        exit_error('Error', $dgh->getErrorMessage());
    }
    //display_groups_option($group_id);
    $selected_doc_group = getIntFromRequest('selected_doc_group');
    $dgh->showSelectNestedGroups($dgf->getNested(), 'doc_group', false, $selected_doc_group);
    echo '
				</td>
			</tr>
		</table>
		<input type="submit" name="submit" value="' . _('Submit Information') . ' " />
			</form>';
    docman_footer(array());
    /*
    } else {
    	docman_header(_('Document Manager: Submit New Documentation'),_('Project: %1$s'));
    	?>
    	
    	<?php
    	echo '<form name="select_opt" action="'. getStringFromServer('PHP_SELF').'?group_id='.$group_id.'" method="post">';
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:new.php

示例13: session_require

 * SourceForge Sitewide Statistics
 *
 * SourceForge: Breaking Down the Barriers to Open Source Development
 * Copyright 1999-2001 (c) VA Linux Systems
 * http://sourceforge.net
 *
 * @version   $Id$
 *
 */
require_once '../env.inc.php';
require_once $gfwww . 'include/pre.php';
require_once $gfwww . 'include/graph_lib.php';
// require you to be a member of the sfstats group (group_id = 11084)
session_require(array('group' => $sys_stats_group));
$group_id = getIntFromRequest('group_id');
$year = getIntFromRequest('year');
if (!$group_id) {
    $group_id = 0;
}
if (!$year) {
    $year = gmstrftime("%Y", time());
}
$sql = "SELECT month,day,new_users,new_projects FROM stats_site ORDER BY month ASC, day ASC";
$res = db_query($sql);
$i = 0;
while ($row = db_fetch_array($res)) {
    $xdata[$i] = $i;
    $xlabel[$i] = substr($row['month'], 4) + 1 - 1 . "/" . $row['day'];
    $ydata1[$i] = $row["new_users"];
    $ydata2[$i] = $row["new_projects"];
    ++$i;
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:users_graph.php

示例14: getIntFromRequest

<?php

//
//  FORM TO ADD ELEMENTS TO EXTRA FIELD
//
$boxid = getIntFromRequest('boxid');
$ac = new ArtifactExtraField($ath, $boxid);
if (!$ac || !is_object($ac)) {
    exit_error('Error', 'Unable to create ArtifactExtraField Object');
} elseif ($ac->isError()) {
    exit_error('Error', $ac->getErrorMessage());
} else {
    $efearr = $ath->getExtraFieldElements($boxid);
    $title = sprintf(_('Add/Update Custom Field Elements in %s'), $ath->getName());
    $ath->adminHeader(array('title' => $title));
    echo "<h3>" . $title . "</h3>";
    echo "<br />";
    $rows = count($efearr);
    if ($rows > 0) {
        $title_arr = array();
        $title_arr[] = _('Elements Defined');
        echo $GLOBALS['HTML']->listTableTop($title_arr);
        for ($i = 0; $i < $rows; $i++) {
            echo '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($i) . '>' . '<td><a href="' . getStringFromServer('PHP_SELF') . '?update_opt=1&amp;id=' . $efearr[$i]['element_id'] . '&amp;boxid=' . $boxid . '&amp;group_id=' . $group_id . '&amp;atid=' . $ath->getID() . '">' . $efearr[$i]['element_name'] . ' [' . _('Edit') . ']</a></td>';
        }
        echo $GLOBALS['HTML']->listTableBottom();
    } else {
        echo "\n<h3>" . _('You have not defined any elements') . "</h3>";
    }
    ?>
		<p>
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:form-addextrafieldoption.php

示例15: getIntFromRequest

 * This file is part of GForge.
 *
 * GForge is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * GForge is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with GForge; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
require_once $gfwww . 'include/pre.php';
$group_id = getIntFromRequest('group_id');
$sub_group_id = getIntFromRequest('sub_group_id');
session_require(array('group' => $group_id, 'admin_flags' => 'A'));
//plugin webcal
$params[0] = $sub_group_id;
$params[1] = $group_id;
plugin_hook('del_cal_link_father', $params);
//del link between two projects
$sql = "DELETE FROM plugin_projects_hierarchy WHERE project_id  = '" . $group_id . "' AND sub_project_id = '" . $sub_group_id . "'";
//print "<br>".$sql;
db_begin();
db_query($sql) or die(db_error());
db_commit();
header("Location: " . util_make_url('/project/admin/index.php?group_id=' . $sub_group_id));
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:del_father.php


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