repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
Allyans3/steam-market-api-v2 | https://github.com/Allyans3/steam-market-api-v2/blob/5a313e4af0eff0f3c8851d2643b3f4082648907f/examples/item_pricing.php | examples/item_pricing.php | <?php
require __DIR__ . '/../vendor/autoload.php';
use SteamApi\Configs\Apps;
use SteamApi\SteamApi;
$api = new SteamApi();
$options = [
'market_hash_name' => "AK-47 | Slate (Field-Tested)",
'country' => 'US', //optional
'currency' => 1 ... | php | MIT | 5a313e4af0eff0f3c8851d2643b3f4082648907f | 2026-01-05T02:49:16.987519Z | false |
Allyans3/steam-market-api-v2 | https://github.com/Allyans3/steam-market-api-v2/blob/5a313e4af0eff0f3c8851d2643b3f4082648907f/examples/my_history.php | examples/my_history.php | <?php
require __DIR__ . '/../vendor/autoload.php';
use SteamApi\SteamApi;
$api = new SteamApi();
$options = [
'query' => "",
'start' => 0, //optional
'count' => 30 //optional
];
// Cookies for steamcommunity.com
$cookies = 'sessionid=*****... | php | MIT | 5a313e4af0eff0f3c8851d2643b3f4082648907f | 2026-01-05T02:49:16.987519Z | false |
Allyans3/steam-market-api-v2 | https://github.com/Allyans3/steam-market-api-v2/blob/5a313e4af0eff0f3c8851d2643b3f4082648907f/examples/item_orders_activity.php | examples/item_orders_activity.php | <?php
require __DIR__ . '/../vendor/autoload.php';
use SteamApi\Configs\Apps;
use SteamApi\SteamApi;
$api = new SteamApi();
$options = [
'market_hash_name' => "Recoil Case",
'item_name_id' => 176321160,
'country' => 'US', //optional
'language' => 'english', //optional
... | php | MIT | 5a313e4af0eff0f3c8851d2643b3f4082648907f | 2026-01-05T02:49:16.987519Z | false |
Allyans3/steam-market-api-v2 | https://github.com/Allyans3/steam-market-api-v2/blob/5a313e4af0eff0f3c8851d2643b3f4082648907f/examples/Inspectors/inspect_item_v2.php | examples/Inspectors/inspect_item_v2.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use SteamApi\SteamApi;
$api = new SteamApi();
$inspectLink = "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198116851887A38092326942D13875065061064445233";
dd($api->detailed()->inspectItemV2($inspectLink)); | php | MIT | 5a313e4af0eff0f3c8851d2643b3f4082648907f | 2026-01-05T02:49:16.987519Z | false |
Allyans3/steam-market-api-v2 | https://github.com/Allyans3/steam-market-api-v2/blob/5a313e4af0eff0f3c8851d2643b3f4082648907f/examples/Inspectors/inspect_item.php | examples/Inspectors/inspect_item.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use SteamApi\SteamApi;
$api = new SteamApi();
$inspectLink = "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198116851887A38092326942D13875065061064445233";
dd($api->detailed()->inspectItem($inspectLink)); | php | MIT | 5a313e4af0eff0f3c8851d2643b3f4082648907f | 2026-01-05T02:49:16.987519Z | false |
Allyans3/steam-market-api-v2 | https://github.com/Allyans3/steam-market-api-v2/blob/5a313e4af0eff0f3c8851d2643b3f4082648907f/examples/TradeOffers/make_countered_offer.php | examples/TradeOffers/make_countered_offer.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use SteamApi\SteamApi;
$api = new SteamApi();
// Cookies for steamcommunity.com
$cookies = 'sessionid=*********; steamCountry=****************; steamLoginSecure=**************;';
$tradeOfferId = '5654234726';
$formData = [
'partner_id' => '76531274732642783... | php | MIT | 5a313e4af0eff0f3c8851d2643b3f4082648907f | 2026-01-05T02:49:16.987519Z | false |
Allyans3/steam-market-api-v2 | https://github.com/Allyans3/steam-market-api-v2/blob/5a313e4af0eff0f3c8851d2643b3f4082648907f/examples/TradeOffers/create_trade_offer.php | examples/TradeOffers/create_trade_offer.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use SteamApi\SteamApi;
$api = new SteamApi();
// Cookies for steamcommunity.com
$cookies = 'sessionid=*********; steamCountry=****************; steamLoginSecure=**************;';
$tradeLink = 'https://steamcommunity.com/tradeoffer/new/?partner=152735263&token=g8... | php | MIT | 5a313e4af0eff0f3c8851d2643b3f4082648907f | 2026-01-05T02:49:16.987519Z | false |
Allyans3/steam-market-api-v2 | https://github.com/Allyans3/steam-market-api-v2/blob/5a313e4af0eff0f3c8851d2643b3f4082648907f/examples/TradeOffers/cancel_trade_offer.php | examples/TradeOffers/cancel_trade_offer.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use SteamApi\SteamApi;
$api = new SteamApi();
// Cookies for steamcommunity.com
$cookies = 'sessionid=*********; steamCountry=****************; steamLoginSecure=**************;';
$tradeOfferId = "5654234726";
dd($api->detailed()
->withCustomCurlOpts([CU... | php | MIT | 5a313e4af0eff0f3c8851d2643b3f4082648907f | 2026-01-05T02:49:16.987519Z | false |
Allyans3/steam-market-api-v2 | https://github.com/Allyans3/steam-market-api-v2/blob/5a313e4af0eff0f3c8851d2643b3f4082648907f/examples/TradeOffers/trade_offer.php | examples/TradeOffers/trade_offer.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use SteamApi\SteamApi;
$api = new SteamApi();
// Cookies for steamcommunity.com
$cookies = 'sessionid=*********; steamCountry=****************; steamLoginSecure=**************;';
$tradeOfferId = '5654234726';
dd($api->detailed()
->withCustomCurlOpts([CU... | php | MIT | 5a313e4af0eff0f3c8851d2643b3f4082648907f | 2026-01-05T02:49:16.987519Z | false |
Allyans3/steam-market-api-v2 | https://github.com/Allyans3/steam-market-api-v2/blob/5a313e4af0eff0f3c8851d2643b3f4082648907f/examples/TradeOffers/accept_trade_offer.php | examples/TradeOffers/accept_trade_offer.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use SteamApi\SteamApi;
$api = new SteamApi();
// Cookies for steamcommunity.com
$cookies = 'sessionid=*********; steamCountry=****************; steamLoginSecure=**************;';
$tradeOfferId = "5654234726";
$formData = [
'partner_id' => "76531274732642783... | php | MIT | 5a313e4af0eff0f3c8851d2643b3f4082648907f | 2026-01-05T02:49:16.987519Z | false |
Allyans3/steam-market-api-v2 | https://github.com/Allyans3/steam-market-api-v2/blob/5a313e4af0eff0f3c8851d2643b3f4082648907f/examples/TradeOffers/trade_link.php | examples/TradeOffers/trade_link.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use SteamApi\SteamApi;
$api = new SteamApi();
// Cookies for steamcommunity.com
$cookies = 'sessionid=*********; steamCountry=****************; steamLoginSecure=**************;';
dd($api->detailed()
->withCustomCurlOpts([CURLOPT_COOKIEFILE => 'absolute_p... | php | MIT | 5a313e4af0eff0f3c8851d2643b3f4082648907f | 2026-01-05T02:49:16.987519Z | false |
Allyans3/steam-market-api-v2 | https://github.com/Allyans3/steam-market-api-v2/blob/5a313e4af0eff0f3c8851d2643b3f4082648907f/examples/TradeOffers/decline_trade_offer.php | examples/TradeOffers/decline_trade_offer.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use SteamApi\SteamApi;
$api = new SteamApi();
// Cookies for steamcommunity.com
$cookies = 'sessionid=*********; steamCountry=****************; steamLoginSecure=**************;';
$tradeOfferId = '5654234726';
dd($api->detailed()
->withCustomCurlOpts([CU... | php | MIT | 5a313e4af0eff0f3c8851d2643b3f4082648907f | 2026-01-05T02:49:16.987519Z | false |
Allyans3/steam-market-api-v2 | https://github.com/Allyans3/steam-market-api-v2/blob/5a313e4af0eff0f3c8851d2643b3f4082648907f/examples/TradeOffers/sent_offers.php | examples/TradeOffers/sent_offers.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use SteamApi\SteamApi;
$api = new SteamApi();
// Cookies for steamcommunity.com
$cookies = 'sessionid=*********; steamCountry=****************; steamLoginSecure=**************;';
$options = [
'history' => false //optional
];
dd($api->detailed()
... | php | MIT | 5a313e4af0eff0f3c8851d2643b3f4082648907f | 2026-01-05T02:49:16.987519Z | false |
Allyans3/steam-market-api-v2 | https://github.com/Allyans3/steam-market-api-v2/blob/5a313e4af0eff0f3c8851d2643b3f4082648907f/examples/TradeOffers/trade_receipt.php | examples/TradeOffers/trade_receipt.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use SteamApi\SteamApi;
$api = new SteamApi();
// Cookies for steamcommunity.com
$cookies = 'sessionid=*********; steamCountry=****************; steamLoginSecure=**************;';
$tradeOfferId = '5426374527354625341';
$options = [
'language' => 'english' ... | php | MIT | 5a313e4af0eff0f3c8851d2643b3f4082648907f | 2026-01-05T02:49:16.987519Z | false |
Allyans3/steam-market-api-v2 | https://github.com/Allyans3/steam-market-api-v2/blob/5a313e4af0eff0f3c8851d2643b3f4082648907f/examples/TradeOffers/incoming_offers.php | examples/TradeOffers/incoming_offers.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use SteamApi\SteamApi;
$api = new SteamApi();
// Cookies for steamcommunity.com
$cookies = 'sessionid=*********; steamCountry=****************; steamLoginSecure=**************;';
$options = [
'history' => false //optional
];
dd($api->detailed()
... | php | MIT | 5a313e4af0eff0f3c8851d2643b3f4082648907f | 2026-01-05T02:49:16.987519Z | false |
Allyans3/steam-market-api-v2 | https://github.com/Allyans3/steam-market-api-v2/blob/5a313e4af0eff0f3c8851d2643b3f4082648907f/examples/MobileConfirmations/send_multi_conf_ajax.php | examples/MobileConfirmations/send_multi_conf_ajax.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use SteamApi\SteamApi;
$api = new SteamApi();
// Cookies for steamcommunity.com
$cookies = 'sessionid=*********; steamCountry=****************; steamLoginSecure=**************;';
$options = [
'confirmations' => [
[
'id' => '12345678910',
... | php | MIT | 5a313e4af0eff0f3c8851d2643b3f4082648907f | 2026-01-05T02:49:16.987519Z | false |
Allyans3/steam-market-api-v2 | https://github.com/Allyans3/steam-market-api-v2/blob/5a313e4af0eff0f3c8851d2643b3f4082648907f/examples/MobileConfirmations/send_conf_ajax.php | examples/MobileConfirmations/send_conf_ajax.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use SteamApi\SteamApi;
$api = new SteamApi();
// Cookies for steamcommunity.com
$cookies = 'sessionid=*********; steamCountry=****************; steamLoginSecure=**************;';
$options = [
'conf_id' => '12345678910',
'conf_key' => '4204671287461724681... | php | MIT | 5a313e4af0eff0f3c8851d2643b3f4082648907f | 2026-01-05T02:49:16.987519Z | false |
Allyans3/steam-market-api-v2 | https://github.com/Allyans3/steam-market-api-v2/blob/5a313e4af0eff0f3c8851d2643b3f4082648907f/examples/MobileConfirmations/conf_list.php | examples/MobileConfirmations/conf_list.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use SteamApi\SteamApi;
$api = new SteamApi();
// Cookies for steamcommunity.com
$cookies = 'sessionid=*********; steamCountry=****************; steamLoginSecure=**************;';
$options = [
'device_id' => "android:********-****-****-****-************",
... | php | MIT | 5a313e4af0eff0f3c8851d2643b3f4082648907f | 2026-01-05T02:49:16.987519Z | false |
Allyans3/steam-market-api-v2 | https://github.com/Allyans3/steam-market-api-v2/blob/5a313e4af0eff0f3c8851d2643b3f4082648907f/examples/MobileConfirmations/conf_details.php | examples/MobileConfirmations/conf_details.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use SteamApi\SteamApi;
$api = new SteamApi();
// Cookies for steamcommunity.com
$cookies = 'sessionid=*********; steamCountry=****************; steamLoginSecure=**************;';
$confirmationId = '12345678910';
$options = [
'device_id' => "android:********... | php | MIT | 5a313e4af0eff0f3c8851d2643b3f4082648907f | 2026-01-05T02:49:16.987519Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/public/index_forp.php | public/index_forp.php | <?php
// 用forp做性能测试,在public/index_forp.php
forp_start();
date_default_timezone_set('Asia/Chongqing');
define('APPLICATION_PATH', dirname(__FILE__).'/../');
define('APP_PATH', dirname(__FILE__).'/../');
if(!extension_loaded("yaf")){
include(APPLICATION_PATH.'/globals/framework/loader.php');
... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/public/index.php | public/index.php | <?php
date_default_timezone_set('Asia/Chongqing');
define('APPLICATION_PATH', dirname(__FILE__).'/../');
define('APP_PATH', dirname(__FILE__).'/../');
if(!extension_loaded("yaf")){
include(APPLICATION_PATH.'/globals/framework/loader.php');
}
$application = new Yaf_Application( APPLICATION_PATH... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/public/lib/fullcalendar-1.5.3/demos/json-events.php | public/lib/fullcalendar-1.5.3/demos/json-events.php | <?php
$year = date('Y');
$month = date('m');
echo json_encode(array(
array(
'id' => 111,
'title' => "Event1",
'start' => "$year-$month-10",
'url' => "http://yahoo.com/"
),
array(
'id' => 222,
'title' => "Event2",
'start' => "$year-$month-20",
'end' => "$year-$month-22",
'url' ... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/Bootstrap.php | application/Bootstrap.php | <?php
/**
* @name Bootstrap
* @author yantze
* @desc 所有在Bootstrap类中, 以_init开头的方法, 都会被Yaf调用,
* @see http://www.php.net/manual/en/class.yaf-bootstrap-abstract.php
* 这些方法, 都接受一个参数:Yaf_Dispatcher $dispatcher
* 调用的次序, 和申明的次序相同
print_r(Yaf_Application::app());
//require yaf_classes.php
*/
cla... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/yaf_classes.php | application/yaf_classes.php | <?php
/*
* name: yaf所有函数名
*
* 方便非IDE编辑器代码补全
*/
final class Yaf_Application {
/* constants */
/* properties */
protected $config = NULL;
protected $dispatcher = NULL;
static protected $_app = NULL;
protected $_modules = NULL;
protected $_running = "";
protected $_environ = "product";
protected $_err_no = ... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/controllers/Order.php | application/controllers/Order.php | <?php
//require "../yaf_classes.php";
Class OrderController extends Yaf_Controller_Abstract
{
public function init()
{
$this->_order = new OrderModel();
$this->_util = new utils();
}
function indexAction()
{
return true;
}
public function a... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/controllers/Product.php | application/controllers/Product.php | <?php
//require "../yaf_classes.php";
Class ProductController extends Yaf_Controller_Abstract
{
public function init()
{
$this->_product = new ProductModel();
}
function indexAction()
{
$this->getView()->assign("action",strtolower(
$this->getRequest(... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/controllers/User.php | application/controllers/User.php | <?php
//require "../yaf_classes.php";
class UserController extends Yaf_Controller_Abstract
{
public function init()
{
$this->_user = new UserModel();
$this->_util = new utils();
}
public function indexAction()
{
$this->getView()->assign("name",'yantze')... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/controllers/Test.php | application/controllers/Test.php | <?php
class TestController extends Yaf_Controller_Abstract {
public function smartyAction($name = "Stranger", $password = "") {
$this->getView()->assign("body", "Hello Wrold<br/>");
}
public function twigAction() {
$this->getView()->assign("body", "Hello Wrold<br/>");
}
... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/controllers/Admin.php | application/controllers/Admin.php | <?php
//require "../yaf_classes.php";
class AdminController extends Yaf_Controller_Abstract
{
public function init(){
//使用layout页面布局
/*$this->_layout = new LayoutPlugin('admin/admin.html');
$this->dispatcher = Yaf_Registry::get("dispatcher");
$this->dispatcher->registe... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/controllers/Fav.php | application/controllers/Fav.php | <?php
//require "../yaf_classes.php";
Class FavController extends Yaf_Controller_Abstract
{
public function init()
{
$this->_fav = new FavModel();
$this->_util = new utils();
}
function indexAction()
{
return true;
}
public function addAction... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/controllers/Error.php | application/controllers/Error.php | <?php
/**
* @name ErrorController
* @desc 错误控制器, 在发生未捕获的异常时刻被调用
* @see http://www.php.net/manual/en/yaf-dispatcher.catchexception.php
* @author yantze
*/
class ErrorController extends Yaf_Controller_Abstract {
//从2.1开始, errorAction支持直接通过参数获取异常
public function errorAction($exception) {
... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/controllers/Item.php | application/controllers/Item.php | <?php
//require "../yaf_classes.php";
Class ItemController extends Yaf_Controller_Abstract
{
public function init()
{
$this->_item = new ProductModel();
}
function indexAction()
{
$this->getView()->assign("action",strtolower(
$this->getRequest()->get... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/controllers/Orderstatus.php | application/controllers/Orderstatus.php | <?php
//require "../yaf_classes.php";
Class OrderstatusController extends Yaf_Controller_Abstract
{
public function init()
{
$this->_orderStatus = new OrderStatusModel();
}
function indexAction()
{
return false;
}
public function addAction()
{... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/controllers/Index.php | application/controllers/Index.php | <?php
/**
* @name IndexController
* @author yantze
* @desc 默认控制器
* @see http://www.php.net/manual/en/class.yaf-controller-abstract.php
*/
class IndexController extends Yaf_Controller_Abstract {
/**
* 默认动作
* Yaf支持直接把Yaf_Request_Abstract::getParam()得到的同名参数作为Action的形参
* 对于如下的... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/models/Order.php | application/models/Order.php | <?php
//require "../yaf_classes.php";
Class OrderModel
{
protected $_table = "shop_order";
protected $_index = "order_id";
public function __construct()
{
$this->_db = Yaf_Registry::get('_db');
}
public function select($username)
{
$params = array(
... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/models/History.php | application/models/History.php | <?php
Class HistoryModel
{
protected $_table = "shop_history";
public function __construct()
{
$this->_db = Yaf_Registry::get('_db');
}
public function select($username)
{
$params = array(
"history_id",
"user_uuid",
"produ... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/models/Product.php | application/models/Product.php | <?php
/*
* 这里要说明的是,username这个变量在购物车中是商品的名称,当时为了统一,就没有更改变量名
*/
Class ProductModel
{
protected $_table = "shop_product";
protected $_index = "product_uuid";
public function __construct()
{
$this->_db = Yaf_Registry::get('_db');
}
public function select($user... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/models/User.php | application/models/User.php | <?php
Class UserModel
{
protected $_table = "shop_user";
protected $_index = "username";
public function __construct()
{
$this->_db = Yaf_Registry::get('_db');
}
public function loginUser($username, $password)
{
$params = array(
"user_uuid"... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/models/Sample.php | application/models/Sample.php | <?php
/**
* @name SampleModel
* @desc sample数据获取类, 可以访问数据库,文件,其它系统等
* @author yantze
*/
class SampleModel {
public function __construct() {
}
public function selectSample() {
return 'Hello World!';
}
public function insertSample($arrInfo) {
return true;
}
}
| php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/models/Admin.php | application/models/Admin.php | <?php
Class AdminModel
{
protected $_table = "shop_admin";
protected $_index = "username";
public function __construct()
{
$this->_db = Yaf_Registry::get('_db');
}
public function loginUser($username, $password)
{
$params = array(
"password... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/models/Fav.php | application/models/Fav.php | <?php
Class FavModel
{
protected $_table = "shop_fav";
public function __construct()
{
$this->_db = Yaf_Registry::get('_db');
}
public function select($username)
{
$params = array(
"fav_id",
"user_uuid",
"product_uuid",
... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/models/Shop.php | application/models/Shop.php | <?php
Class PurchaseShopModel
{
public function __construct() {
}
}
Class FavoriteShopModel
{
public function __construct() {
}
}
Class OrderShopModel
{
public function __construct() {
}
}
//购买
//收藏
//订单
| php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/models/OrderStatus.php | application/models/OrderStatus.php | <?php
Class OrderStatusModel
{
protected $_table = "shop_order_status";
protected $_index = "order_status_id";
public function __construct()
{
$this->_db = Yaf_Registry::get('_db');
}
public function select($username)
{
$params = array(
"or... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/models/Option.php | application/models/Option.php | <?php
/**
* @name OptionModel
* @author yantze
* @desc 商品的数据库操作model
*/
Class OptionModel
{
protected $_table = "shop_option";
public function __construct()
{
$this->_db = Yaf_Registry::get('_db');
}
public function selectAll()
{
$params = arr... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Db.php | application/library/Db.php | <?php
/*! Medoo 0.9.8 - Copyright 2015, Angel Lai - MIT license - http://medoo.in */
class Db{
protected $database_type;
protected $charset;
protected $database_name;
protected $server;
protected $username;
protected $password;
protected $database_file;
protected $socket;
protected $port;
protected $option=ar... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Blowfish.php | application/library/Blowfish.php | <?php
define('PS_UNPACK_NATIVE', 1);
define('PS_UNPACK_MODIFIED', 2);
class Blowfish extends Crypt_Blowfish {
function encrypt($plaintext) {
if (($length = strlen($plaintext)) >= 1048576)
return false;
$ciphertext = '';
$paddedtext = $this->maxi_pad($plaintext);
$strlen = strlen($paddedtext);
for ($x = ... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Ftp.php | application/library/Ftp.php | <?php
class Ftp {
protected $hostname = '';
protected $username = '';
protected $password = '';
protected $port = '';
protected $timeout = 30;
protected $passive = true;
protected $debug = false;
protected $conn = false;
protected $is_connected = false;
function __construct($hostname, $username, $password,... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Functions.php | application/library/Functions.php | <?php
Class Functions
{
/**
* 一天中12小时时间数组
*/
function DayHour()
{
return array(
' 00:00:01',
' 01:00:01',
' 02:00:01',
' 03:00:01',
' 04:00:01',
' 05:00:01',
' 06:00:01',
' 07:00:01',
' 08:00:01',
... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Captcha.php | application/library/Captcha.php | <?php
/**
* chenzhidong
* 2013-6-1
*/
class Captcha {
private static function words($len) {
$charecters = "123456789abcdefghijklmnpqrstuvwxyz";
$words = "";
$max = strlen($charecters) - 1;
for ($i = 0; $i < $len; $i++)
{
$words .= $charecters[rand(0, $max)];
}
return $words;
}
/**
* 生成验证码字符... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/db_adapter.php | application/library/db_adapter.php | <?php
class db_adapter
{
public function _construct($params)
{
}
}
/*$arr = array(
"database_type"=>"mysql",
"server"=>"mysql",
"username"=>"mysql",
"password"=>"mysql",
"database_name"=>"mysql",
"port"=>"3306",
... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/REST.php | application/library/REST.php | <?php
/*
reference : https://github.com/coderhwz/yaf-rest
*/
class RESTPlugin extends Yaf_Plugin_Abstract {
protected $allowMethods = array('get','post');
protected $denyRedirectURL = '';
protected $denyMsg = '';
public function preDispatch(Yaf_Request_Abstract $request, Yaf_Response_Abstract $resp... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/utils.php | application/library/utils.php | <?php
Class Utils
{
function guid(){
if (function_exists('com_create_guid')){
return com_create_guid();
}else{
mt_srand((double)microtime()*10000);//optional for php 4.2.0 and up.
$charid = strtoupper(md5(uniqid(rand(), true)));
$hyphen = chr... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/twig/twig_Adapter.php | application/library/twig/twig_Adapter.php | <?php
class twig_Adapter implements Yaf_View_Interface {
/**
* assigned vars
* <a href="http://my.oschina.net/var" class="referer" target="_blank">@var</a> array
*/
protected $_assigned = array();
/**
* twig environment
* <a href="http://my.oschina.net/var" class="referer" target="_blank">@var... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/Smarty.class.php | application/library/Smarty/Smarty.class.php | <?php
/**
* Project: Smarty: the PHP compiling template engine
* File: Smarty.class.php
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Li... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | true |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/Adapter.php | application/library/Smarty/Adapter.php | <?php
/**
* Smarty.php
*
* @author Laruence
* @date 2010-08-01 14:15
* @version $Id$
*/
require "Smarty.class.php";
class Smarty_Adapter implements Yaf_View_Interface
{
/**
* Smarty object
* @var Smarty
*/
public $_smarty;
/**
* Constructor
*
* @param string $tmp... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/Config_File.class.php | application/library/Smarty/Config_File.class.php | <?php
/**
* Config_File class.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is d... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/Smarty_Compiler.class.php | application/library/Smarty/Smarty_Compiler.class.php | <?php
/**
* Project: Smarty: the PHP compiling template engine
* File: Smarty_Compiler.class.php
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 ... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | true |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/function.counter.php | application/library/Smarty/plugins/function.counter.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {counter} function plugin
*
* Type: function<br>
* Name: counter<br>
* Purpose: print out a counter value
* @author Monte Ohrt <monte at ohrt dot com>
* @link http://smarty.php.net/manual/en/language.function.counter... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/modifier.nl2br.php | application/library/Smarty/plugins/modifier.nl2br.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty plugin
*
* Type: modifier<br>
* Name: nl2br<br>
* Date: Feb 26, 2003
* Purpose: convert \r\n, \r or \n to <<br>>
* Input:<br>
* - contents = contents to replace
* - preceed_test = if true, inclu... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/compiler.assign.php | application/library/Smarty/plugins/compiler.assign.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {assign} compiler function plugin
*
* Type: compiler function<br>
* Name: assign<br>
* Purpose: assign a value to a template variable
* @link http://smarty.php.net/manual/en/language.custom.functions.php#LANGUAGE.FUNCT... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/function.html_image.php | application/library/Smarty/plugins/function.html_image.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {html_image} function plugin
*
* Type: function<br>
* Name: html_image<br>
* Date: Feb 24, 2003<br>
* Purpose: format HTML tags for the image<br>
* Input:<br>
* - file = file (and path) of image (require... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/modifier.escape.php | application/library/Smarty/plugins/modifier.escape.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty escape modifier plugin
*
* Type: modifier<br>
* Name: escape<br>
* Purpose: Escape the string according to escapement type
* @link http://smarty.php.net/manual/en/language.modifier.escape.php
* escape (Smart... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/modifier.default.php | application/library/Smarty/plugins/modifier.default.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty default modifier plugin
*
* Type: modifier<br>
* Name: default<br>
* Purpose: designate default value for empty variables
* @link http://smarty.php.net/manual/en/language.modifier.default.php
* default (Smar... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/function.html_radios.php | application/library/Smarty/plugins/function.html_radios.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {html_radios} function plugin
*
* File: function.html_radios.php<br>
* Type: function<br>
* Name: html_radios<br>
* Date: 24.Feb.2003<br>
* Purpose: Prints out a list of radio input types<br>
* Inp... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/modifier.count_characters.php | application/library/Smarty/plugins/modifier.count_characters.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty count_characters modifier plugin
*
* Type: modifier<br>
* Name: count_characteres<br>
* Purpose: count the number of characters in a text
* @link http://smarty.php.net/manual/en/language.modifier.count.characters.php
... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/function.html_checkboxes.php | application/library/Smarty/plugins/function.html_checkboxes.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {html_checkboxes} function plugin
*
* File: function.html_checkboxes.php<br>
* Type: function<br>
* Name: html_checkboxes<br>
* Date: 24.Feb.2003<br>
* Purpose: Prints out a list of checkbox input t... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/modifier.lower.php | application/library/Smarty/plugins/modifier.lower.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty lower modifier plugin
*
* Type: modifier<br>
* Name: lower<br>
* Purpose: convert string to lowercase
* @link http://smarty.php.net/manual/en/language.modifier.lower.php
* lower (Smarty online manual)
* @au... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/block.textformat.php | application/library/Smarty/plugins/block.textformat.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {textformat}{/textformat} block plugin
*
* Type: block function<br>
* Name: textformat<br>
* Purpose: format text a certain way with preset styles
* or custom wrap/indent settings<br>
* @link http://smarty.p... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/function.config_load.php | application/library/Smarty/plugins/function.config_load.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {config_load} function plugin
*
* Type: function<br>
* Name: config_load<br>
* Purpose: load config file vars
* @link http://smarty.php.net/manual/en/language.function.config.load.php {config_load}
* (Smarty onl... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/function.popup.php | application/library/Smarty/plugins/function.popup.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {popup} function plugin
*
* Type: function<br>
* Name: popup<br>
* Purpose: make text pop up in windows via overlib
* @link http://smarty.php.net/manual/en/language.function.popup.php {popup}
* (Smarty onlin... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/function.html_select_date.php | application/library/Smarty/plugins/function.html_select_date.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {html_select_date} plugin
*
* Type: function<br>
* Name: html_select_date<br>
* Purpose: Prints the dropdowns for date selection.
*
* ChangeLog:<br>
* - 1.0 initial release
* - 1.1 added support ... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/shared.escape_special_chars.php | application/library/Smarty/plugins/shared.escape_special_chars.php | <?php
/**
* Smarty shared plugin
* @package Smarty
* @subpackage plugins
*/
/**
* escape_special_chars common function
*
* Function: smarty_function_escape_special_chars<br>
* Purpose: used by other smarty functions to escape
* special chars except for already escaped ones
* @author Monte Ohrt ... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/shared.make_timestamp.php | application/library/Smarty/plugins/shared.make_timestamp.php | <?php
/**
* Smarty shared plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Function: smarty_make_timestamp<br>
* Purpose: used by other smarty functions to make a timestamp
* from a string.
* @author Monte Ohrt <monte at ohrt dot com>
* @param string
* @return string
*/
function smarty_... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/modifier.count_sentences.php | application/library/Smarty/plugins/modifier.count_sentences.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty count_sentences modifier plugin
*
* Type: modifier<br>
* Name: count_sentences
* Purpose: count the number of sentences in a text
* @link http://smarty.php.net/manual/en/language.modifier.count.paragraphs.php
* ... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/modifier.replace.php | application/library/Smarty/plugins/modifier.replace.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty replace modifier plugin
*
* Type: modifier<br>
* Name: replace<br>
* Purpose: simple search/replace
* @link http://smarty.php.net/manual/en/language.modifier.replace.php
* replace (Smarty online manual)
* @... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/function.cycle.php | application/library/Smarty/plugins/function.cycle.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {cycle} function plugin
*
* Type: function<br>
* Name: cycle<br>
* Date: May 3, 2002<br>
* Purpose: cycle through given values<br>
* Input:
* - name = name of cycle (optional)
* - values = comma ... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/modifier.count_paragraphs.php | application/library/Smarty/plugins/modifier.count_paragraphs.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty count_paragraphs modifier plugin
*
* Type: modifier<br>
* Name: count_paragraphs<br>
* Purpose: count the number of paragraphs in a text
* @link http://smarty.php.net/manual/en/language.modifier.count.paragraphs.php
... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/modifier.cat.php | application/library/Smarty/plugins/modifier.cat.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty cat modifier plugin
*
* Type: modifier<br>
* Name: cat<br>
* Date: Feb 24, 2003
* Purpose: catenate a value to a variable
* Input: string to catenate
* Example: {$var|cat:"foo"}
* @link http://smarty.php.ne... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/function.eval.php | application/library/Smarty/plugins/function.eval.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {eval} function plugin
*
* Type: function<br>
* Name: eval<br>
* Purpose: evaluate a template variable as a template<br>
* @link http://smarty.php.net/manual/en/language.function.eval.php {eval}
* (Smarty onlin... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/modifier.string_format.php | application/library/Smarty/plugins/modifier.string_format.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty string_format modifier plugin
*
* Type: modifier<br>
* Name: string_format<br>
* Purpose: format strings via sprintf
* @link http://smarty.php.net/manual/en/language.modifier.string.format.php
* string_forma... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/modifier.regex_replace.php | application/library/Smarty/plugins/modifier.regex_replace.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty regex_replace modifier plugin
*
* Type: modifier<br>
* Name: regex_replace<br>
* Purpose: regular expression search/replace
* @link http://smarty.php.net/manual/en/language.modifier.regex.replace.php
* regex... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/function.html_options.php | application/library/Smarty/plugins/function.html_options.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {html_options} function plugin
*
* Type: function<br>
* Name: html_options<br>
* Input:<br>
* - name (optional) - string default "select"
* - values (required if no options supplied) - ar... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/block.privilege.php | application/library/Smarty/plugins/block.privilege.php | <?php
function smarty_block_privilege($params, $content, &$smarty)
{
if (is_null($content)) {
return;
}
$require = @$params['role'];
if (empty($require)) {
return $content;
}
$user = $smarty->_tpl_vars['gUser'];
$satisfy = false;
switch ($require) {
case Uc_Auth::CRADLE_ROLE_ADM:
if ($u... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/function.assign_debug_info.php | application/library/Smarty/plugins/function.assign_debug_info.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {assign_debug_info} function plugin
*
* Type: function<br>
* Name: assign_debug_info<br>
* Purpose: assign debug info to the template<br>
* @author Monte Ohrt <monte at ohrt dot com>
* @param array unused in this plug... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/modifier.capitalize.php | application/library/Smarty/plugins/modifier.capitalize.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty capitalize modifier plugin
*
* Type: modifier<br>
* Name: capitalize<br>
* Purpose: capitalize words in the string
* @link http://smarty.php.net/manual/en/language.modifiers.php#LANGUAGE.MODIFIER.CAPITALIZE
* ca... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/function.html_select_time.php | application/library/Smarty/plugins/function.html_select_time.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {html_select_time} function plugin
*
* Type: function<br>
* Name: html_select_time<br>
* Purpose: Prints the dropdowns for time selection
* @link http://smarty.php.net/manual/en/language.function.html.select.time.php ... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/function.mailto.php | application/library/Smarty/plugins/function.mailto.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {mailto} function plugin
*
* Type: function<br>
* Name: mailto<br>
* Date: May 21, 2002
* Purpose: automate mailto address link creation, and optionally
* encode them.<br>
* Input:<br>
* - add... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/function.popup_init.php | application/library/Smarty/plugins/function.popup_init.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {popup_init} function plugin
*
* Type: function<br>
* Name: popup_init<br>
* Purpose: initialize overlib
* @link http://smarty.php.net/manual/en/language.function.popup.init.php {popup_init}
* (Smarty online... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/function.debug.php | application/library/Smarty/plugins/function.debug.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {debug} function plugin
*
* Type: function<br>
* Name: debug<br>
* Date: July 1, 2002<br>
* Purpose: popup debug window
* @link http://smarty.php.net/manual/en/language.function.debug.php {debug}
* (Smarty... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/modifier.upper.php | application/library/Smarty/plugins/modifier.upper.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty upper modifier plugin
*
* Type: modifier<br>
* Name: upper<br>
* Purpose: convert string to uppercase
* @link http://smarty.php.net/manual/en/language.modifier.upper.php
* upper (Smarty online manual)
* @au... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/function.html_table.php | application/library/Smarty/plugins/function.html_table.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {html_table} function plugin
*
* Type: function<br>
* Name: html_table<br>
* Date: Feb 17, 2003<br>
* Purpose: make an html table from an array of data<br>
* Input:<br>
* - loop = array to loop through
... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/modifier.date_format.php | application/library/Smarty/plugins/modifier.date_format.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Include the {@link shared.make_timestamp.php} plugin
*/
require_once $smarty->_get_plugin_filepath('shared', 'make_timestamp');
/**
* Smarty date_format modifier plugin
*
* Type: modifier<br>
* Name: date_format<br>
* Purpose... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/outputfilter.trimwhitespace.php | application/library/Smarty/plugins/outputfilter.trimwhitespace.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty trimwhitespace outputfilter plugin
*
* File: outputfilter.trimwhitespace.php<br>
* Type: outputfilter<br>
* Name: trimwhitespace<br>
* Date: Jan 25, 2003<br>
* Purpose: trim leading white space and blank lines... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/modifier.wordwrap.php | application/library/Smarty/plugins/modifier.wordwrap.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty wordwrap modifier plugin
*
* Type: modifier<br>
* Name: wordwrap<br>
* Purpose: wrap a string of text at a given length
* @link http://smarty.php.net/manual/en/language.modifier.wordwrap.php
* wordwrap (Smar... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/modifier.strip_tags.php | application/library/Smarty/plugins/modifier.strip_tags.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty strip_tags modifier plugin
*
* Type: modifier<br>
* Name: strip_tags<br>
* Purpose: strip html tags from text
* @link http://smarty.php.net/manual/en/language.modifier.strip.tags.php
* strip_tags (Smarty onl... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/modifier.spacify.php | application/library/Smarty/plugins/modifier.spacify.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty spacify modifier plugin
*
* Type: modifier<br>
* Name: spacify<br>
* Purpose: add spaces between characters in a string
* @link http://smarty.php.net/manual/en/language.modifier.spacify.php
* spacify (Smarty... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/modifier.strip.php | application/library/Smarty/plugins/modifier.strip.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty strip modifier plugin
*
* Type: modifier<br>
* Name: strip<br>
* Purpose: Replace all repeated spaces, newlines, tabs
* with a single space or supplied replacement string.<br>
* Example: {$var|strip} {$var... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/modifier.indent.php | application/library/Smarty/plugins/modifier.indent.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty indent modifier plugin
*
* Type: modifier<br>
* Name: indent<br>
* Purpose: indent lines of text
* @link http://smarty.php.net/manual/en/language.modifier.indent.php
* indent (Smarty online manual)
* @autho... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/modifier.count_words.php | application/library/Smarty/plugins/modifier.count_words.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty count_words modifier plugin
*
* Type: modifier<br>
* Name: count_words<br>
* Purpose: count the number of words in a text
* @link http://smarty.php.net/manual/en/language.modifier.count.words.php
* count_wor... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
yantze/yaf | https://github.com/yantze/yaf/blob/914288a35c19441e47b2b6c8734d4b78ee61928f/application/library/Smarty/plugins/modifier.truncate.php | application/library/Smarty/plugins/modifier.truncate.php | <?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty truncate modifier plugin
*
* Type: modifier<br>
* Name: truncate<br>
* Purpose: Truncate a string to a certain length if necessary,
* optionally splitting in the middle of a word, and
* appending ... | php | MIT | 914288a35c19441e47b2b6c8734d4b78ee61928f | 2026-01-05T02:49:19.997385Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.