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 |
|---|---|---|---|---|---|---|---|---|
archtechx/airwire | https://github.com/archtechx/airwire/blob/00a9879b8df788bdf5215b8843d78490c17e0771/src/Concerns/ManagesValidation.php | src/Concerns/ManagesValidation.php | <?php
declare(strict_types=1);
namespace Airwire\Concerns;
use Illuminate\Contracts\Validation\Validator as AbstractValidator;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\MessageBag;
use Illuminate\Validation\ValidationException;
trait ManagesValidation
{
public ... | php | MIT | 00a9879b8df788bdf5215b8843d78490c17e0771 | 2026-01-05T02:23:58.705269Z | false |
archtechx/airwire | https://github.com/archtechx/airwire/blob/00a9879b8df788bdf5215b8843d78490c17e0771/src/Concerns/ManagesActions.php | src/Concerns/ManagesActions.php | <?php
declare(strict_types=1);
namespace Airwire\Concerns;
use Airwire\Airwire;
use Illuminate\Foundation\Exceptions\Handler;
use Illuminate\Validation\ValidationException;
use ReflectionMethod;
use ReflectionObject;
use Throwable;
trait ManagesActions
{
public array $readonly = [];
public function makeCha... | php | MIT | 00a9879b8df788bdf5215b8843d78490c17e0771 | 2026-01-05T02:23:58.705269Z | false |
archtechx/airwire | https://github.com/archtechx/airwire/blob/00a9879b8df788bdf5215b8843d78490c17e0771/src/Concerns/ManagesState.php | src/Concerns/ManagesState.php | <?php
declare(strict_types=1);
namespace Airwire\Concerns;
use Airwire\Airwire;
use Airwire\Attributes\Wired;
use ReflectionMethod;
use ReflectionObject;
use ReflectionProperty;
trait ManagesState
{
public bool $hasBeenReset = false;
public function getSharedProperties(): array
{
return collect... | php | MIT | 00a9879b8df788bdf5215b8843d78490c17e0771 | 2026-01-05T02:23:58.705269Z | false |
archtechx/airwire | https://github.com/archtechx/airwire/blob/00a9879b8df788bdf5215b8843d78490c17e0771/src/Concerns/ManagesLifecycle.php | src/Concerns/ManagesLifecycle.php | <?php
declare(strict_types=1);
namespace Airwire\Concerns;
use Illuminate\Validation\ValidationException;
trait ManagesLifecycle
{
public function hydrateComponent(): bool
{
if ($this->strictValidation && $this->validate(throw: false) === false) {
return false;
}
if (met... | php | MIT | 00a9879b8df788bdf5215b8843d78490c17e0771 | 2026-01-05T02:23:58.705269Z | false |
archtechx/airwire | https://github.com/archtechx/airwire/blob/00a9879b8df788bdf5215b8843d78490c17e0771/src/Commands/GenerateDefinitions.php | src/Commands/GenerateDefinitions.php | <?php
declare(strict_types=1);
namespace Airwire\Commands;
use Airwire\Airwire;
use Airwire\TypehintConverter;
use Illuminate\Console\Command;
class GenerateDefinitions extends Command
{
public static string $dir;
protected $signature = 'airwire:generate';
protected $description = 'Generate TypeScript... | php | MIT | 00a9879b8df788bdf5215b8843d78490c17e0771 | 2026-01-05T02:23:58.705269Z | false |
archtechx/airwire | https://github.com/archtechx/airwire/blob/00a9879b8df788bdf5215b8843d78490c17e0771/src/Commands/ComponentCommand.php | src/Commands/ComponentCommand.php | <?php
declare(strict_types=1);
namespace Airwire\Commands;
use Exception;
use Illuminate\Console\Command;
use Illuminate\Support\Str;
class ComponentCommand extends Command
{
protected $signature = 'airwire:component {name}';
protected $description = 'Create a new Airwire component';
public function h... | php | MIT | 00a9879b8df788bdf5215b8843d78490c17e0771 | 2026-01-05T02:23:58.705269Z | false |
archtechx/airwire | https://github.com/archtechx/airwire/blob/00a9879b8df788bdf5215b8843d78490c17e0771/src/Attributes/Wired.php | src/Attributes/Wired.php | <?php
declare(strict_types=1);
namespace Airwire\Attributes;
use Attribute;
#[Attribute(Attribute::TARGET_PROPERTY|Attribute::TARGET_METHOD)]
class Wired
{
public function __construct(
public mixed $default = null,
public bool $readonly = false,
public string|null $type = null,
) {
... | php | MIT | 00a9879b8df788bdf5215b8843d78490c17e0771 | 2026-01-05T02:23:58.705269Z | false |
archtechx/airwire | https://github.com/archtechx/airwire/blob/00a9879b8df788bdf5215b8843d78490c17e0771/src/Attributes/Encode.php | src/Attributes/Encode.php | <?php
declare(strict_types=1);
namespace Airwire\Attributes;
use Attribute;
#[Attribute(Attribute::TARGET_PROPERTY)]
class Encode
{
public function __construct(
public string|null $property = null,
public string|null $method = null,
public string|null $function = null,
) {
}
... | php | MIT | 00a9879b8df788bdf5215b8843d78490c17e0771 | 2026-01-05T02:23:58.705269Z | false |
archtechx/airwire | https://github.com/archtechx/airwire/blob/00a9879b8df788bdf5215b8843d78490c17e0771/tests/Pest.php | tests/Pest.php | <?php
/*
|--------------------------------------------------------------------------
| Test Case
|--------------------------------------------------------------------------
|
| The closure you provide to your test functions is always bound to a specific PHPUnit test
| case class. By default, that class is "PHPUnit\Fra... | php | MIT | 00a9879b8df788bdf5215b8843d78490c17e0771 | 2026-01-05T02:23:58.705269Z | false |
archtechx/airwire | https://github.com/archtechx/airwire/blob/00a9879b8df788bdf5215b8843d78490c17e0771/tests/TestCase.php | tests/TestCase.php | <?php
namespace Airwire\Tests;
use Airwire\AirwireServiceProvider;
use Orchestra\Testbench\TestCase as TestbenchTestCase;
class TestCase extends TestbenchTestCase
{
protected function getPackageProviders($app)
{
return [
AirwireServiceProvider::class,
];
}
}
| php | MIT | 00a9879b8df788bdf5215b8843d78490c17e0771 | 2026-01-05T02:23:58.705269Z | false |
archtechx/airwire | https://github.com/archtechx/airwire/blob/00a9879b8df788bdf5215b8843d78490c17e0771/tests/Airwire/ValidationTest.php | tests/Airwire/ValidationTest.php | <?php
use Airwire\Airwire;
use Airwire\Attributes\Wired;
use Airwire\Component;
beforeAll(function () {
Airwire::component('autovalidated-component', AutovalidatedComponent::class);
Airwire::component('manually-validated-component', ManuallyValidatedComponent::class);
Airwire::component('multi-input-compo... | php | MIT | 00a9879b8df788bdf5215b8843d78490c17e0771 | 2026-01-05T02:23:58.705269Z | false |
archtechx/airwire | https://github.com/archtechx/airwire/blob/00a9879b8df788bdf5215b8843d78490c17e0771/tests/Airwire/TypehintsTest.php | tests/Airwire/TypehintsTest.php | <?php
use Airwire\Airwire;
use Airwire\Attributes\Encode;
use Airwire\Component;
use Airwire\Attributes\Wired;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
beforeEach(function () {
Schema::create('produc... | php | MIT | 00a9879b8df788bdf5215b8843d78490c17e0771 | 2026-01-05T02:23:58.705269Z | false |
archtechx/airwire | https://github.com/archtechx/airwire/blob/00a9879b8df788bdf5215b8843d78490c17e0771/tests/Airwire/ComponentTest.php | tests/Airwire/ComponentTest.php | <?php
use Airwire\Airwire;
use Airwire\Attributes\Wired;
use Airwire\Component;
use Illuminate\Database\Eloquent\Collection;
use function Pest\Laravel\withoutExceptionHandling;
beforeEach(fn () => Airwire::component('test-component', TestComponent::class));
test('properties are shared only if they have the Wired at... | php | MIT | 00a9879b8df788bdf5215b8843d78490c17e0771 | 2026-01-05T02:23:58.705269Z | false |
archtechx/airwire | https://github.com/archtechx/airwire/blob/00a9879b8df788bdf5215b8843d78490c17e0771/tests/Airwire/TypeScriptTest.php | tests/Airwire/TypeScriptTest.php | <?php
// todo generated definitions
// todo : any as default
// todo do custom DTOs get TS defs as well?
// todo model relations
| php | MIT | 00a9879b8df788bdf5215b8843d78490c17e0771 | 2026-01-05T02:23:58.705269Z | false |
archtechx/airwire | https://github.com/archtechx/airwire/blob/00a9879b8df788bdf5215b8843d78490c17e0771/routes/airwire.php | routes/airwire.php | <?php
use Airwire\Http\AirwireController;
use Illuminate\Support\Facades\Route;
Route::post('/airwire/{component}/{target?}', AirwireController::class)->name('airwire.component');
| php | MIT | 00a9879b8df788bdf5215b8843d78490c17e0771 | 2026-01-05T02:23:58.705269Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/footer.php | footer.php | <?php if (boxmoe_com('indexlinks')){ echo get_the_link_items_index();}?>
<footer class="footer section">
<div class="container">
<hr class="hr-icon">
<?php echo boxmoe_com('footer_seo') ;?>
<p class="copyright text-center">
© <a href="<?php echo home_url();?>" target="_bla... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/page.php | page.php | <?php get_header(); ?>
<?php get_sidebar(); ?>
<section class="section">
<div class="container">
<div class="section-head">
<span>Page</span></div>
<div class="row justify-content-center align-items-center">
<div class="col-lg-12 col-md-12"><?php while (have_pos... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/comments.php | comments.php | <?php
defined('ABSPATH') or die('This file can not be loaded directly.');
/*global $comment_ids; $comment_ids = array();
// global $loguser;
foreach ( $comments as $comment ) {
if (get_comment_type() == "comment") {
$comment_ids[get_comment_id()] = ++$comment_i;
}
} */
if ( !comments_open() ) return;
date_default_t... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/search.php | search.php | <?php
/*
* Boxmoe.com template file.
*/
get_header(); ?>
<section class="section section-about" id="about">
<div class="container">
<div class="section-head">
<span>search</span>
<h4>搜索:[<?php echo htmlspecialchars($s); ?>]<?php echo __('关键词的结果', 'meowdata') ?><?php global $wp_... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/functions.php | functions.php | <?php
define( 'OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/module/options/' );
require_once dirname( __FILE__ ) . '/module/options/options-framework.php';
$optionsfile = locate_template( 'options.php' );
load_template( $optionsfile );
require_once get_stylesheet_directory() . '/module/fun-panel.php';... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/options.php | options.php | <?php
/**
* A unique identifier is defined to store the options in the database and reference them from the theme.
*/
function optionsframework_option_name() {
// Change this to use your theme slug
return 'options-framework-theme';
}
/**
* Defines an array of options that will be used to generate the settings pag... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/index.php | index.php | <?php
/*
* Boxmoe.com template file.
*/
get_header(); ?>
<section class="section section-about" id="about">
<div class="container">
<div class="section-head">
<span><?php if(is_home()) {echo'Home';}else{echo'category';} ?></span>
<h2>New post</h2></div>
<div class="r... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/404.php | 404.php | <?php get_header(); ?>
<section class="section section-about" id="about">
<div class="container">
<div class="section-head">
<span>404 not found</span>
</div>
<div class="row justify-content-center align-items-center">
<div class="alert alert-warning text-center" rol... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/header.php | header.php | <!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo bm_title(); ?></title>
<?php echo bm_keywords()?>
<?php echo bm_description()?>
<?php if (boxmoe_com('favi... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/single.php | single.php | <?php get_header(); ?>
<?php get_sidebar(); ?>
<section class="section">
<div class="container">
<div class="section-head">
<span>Single</span></div>
<div class="row justify-content-center align-items-center">
<div class="col-lg-12 col-md-12"><?php while (have_posts()... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/sidebar.php | sidebar.php | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false | |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/module/fun-ajax-comments.php | module/fun-ajax-comments.php | <?php
/**
* WordPress 内置嵌套评论专用 Ajax comments >> WordPress-jQuery-Ajax-Comments v1.3 by Willin Kan.
*
* 说明: 这个文件是由 WP 3.0 根目录的 wp-comment-post.php 修改的, 修改的地方有注解. 当 WP 升级, 请注意可能有所不同.
*/
session_start();
if ( 'POST' != $_SERVER['REQUEST_METHOD'] ) {
header('Allow: POST');
header('HTTP/1.1 405 Method Not Allowed');
h... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/module/fun-admin.php | module/fun-admin.php | <?php
function boxmoe_options_menu_filter($menu) {
$menu['mode'] = 'menu';
$menu['page_title'] = 'Boxmoe主题设置';
$menu['menu_title'] = 'Boxmoe主题设置';
$menu['menu_slug'] = 'boxmoe-options';
return $menu;
}
add_filter('optionsframework_menu', 'boxmoe_options_menu_filter');
//自动给修改网站登陆页面logo
function customize_login_... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/module/fun-seo.php | module/fun-seo.php | <?php
//全站链接字符
function bm_connector(){
return boxmoe_com('connector') ? boxmoe_com('connector') : '-';
}
//全站标题
function bm_title() {
global $new_title;
if( $new_title ) return $new_title;
global $paged;
$html = '';
$t = trim(wp_title('', false));
if( (is_single() || is_page()) && get_the_subtitle(false) ){
... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/module/fun-user.php | module/fun-user.php | <?php
//中文注册用户名
if( boxmoe_com('sign_zhcn') ){
function ludou_sanitize_user ($username, $raw_username, $strict) {
$username = wp_strip_all_tags( $raw_username );
$username = remove_accents( $username );
$username = preg_replace( '|%([a-fA-F0-9][a-fA-F0-9])|', '', $username );
$username = preg_replace( '/&.+?;/... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/module/fun-opzui.php | module/fun-opzui.php | <?php
//使用默认编辑器
if( boxmoe_com('gutenbergoff') ) {
add_filter('use_block_editor_for_post', '__return_false');
remove_action( 'wp_enqueue_scripts', 'wp_common_block_scripts_and_styles' ); // 禁止前端加载样式文件
}
################# 主题优化 #################
remove_action('wp_head', 'feed_links_extra', 3);
remove_action(... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/module/fun-article.php | module/fun-article.php | <?php
//文章列表边框形式切换
function bm_border($border='entry-blog-border') {
if(boxmoe_com('blog_border') == 'border1' ){$border='entry-blog-border';}
if(boxmoe_com('blog_border') == 'border2'){$border='entry-blog-shadow';}
return $border;
}
//文章新窗口打开
function _post_target_blank(){return boxmoe_com('target_blank') ? ' tar... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/module/fun-no-category.php | module/fun-no-category.php | <?php
add_action( 'load-themes.php', 'no_category_base_refresh_rules');
add_action('created_category', 'no_category_base_refresh_rules');
add_action('edited_category', 'no_category_base_refresh_rules');
add_action('delete_category', 'no_category_base_refresh_rules');
function no_category_base_refresh_rules() {
glo... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/module/fun-bootstrap.php | module/fun-bootstrap.php | <?php
/*
* nav bootstrap
* ====================================================
*/
class wp_bootstrap_navwalker extends Walker_Nav_Menu {
public function start_lvl( &$output, $depth = 0, $args = array() ) {
$indent = str_repeat( "\t", $depth );
$output .= "\n$indent<ul class=\"dropdown-menu\">\n";
}
pu... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/module/fun-mail.php | module/fun-mail.php | <?php
if( boxmoe_com('smtpmail') ) {
add_action('phpmailer_init', 'mail_smtp');
function mail_smtp( $phpmailer ) {
$phpmailer->FromName = ''.boxmoe_com('fromnames').''; //发件人
$phpmailer->Host = ''.boxmoe_com('smtphost').''; //修改为你使用的SMTP服务器
$phpmailer->Port = ''.boxmoe_com('smtpprot').''; //SMTP端口,开启了SSL加密
$phpmailer->... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/module/fun-comments.php | module/fun-comments.php | <?php
/*
* comment list
* ====================================================
*/
if ( ! function_exists( 'boxmoe_comments_list' ) ) :
function boxmoe_comments_list( $comment, $args, $depth ) {
?>
<li class="commentsline"><div <?php comment_class( empty( $args['has_children'] ) ? '' : 'parent' ); ?> id="comment... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/module/fun-global.php | module/fun-global.php | <?php
//载入前端资源
function boxmoe_load_style(){
if( boxmoe_com('style_src_onoff') ) {
$styleurlload = boxmoe_com('style_src') ;
}else{
$styleurlload = get_template_directory_uri() ;
}
return $styleurlload;
}
function boxmoe_enqueue_scripts() {
$theme_version = wp_get_theme()->get( 'Version' );
wp_enqueue_style('th... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/module/fun-panel.php | module/fun-panel.php | <?php
add_action( 'optionsframework_custom_scripts', 'optionsframework_custom_scripts' );
function optionsframework_custom_scripts() { ?>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#banner_rand').click(function() {
jQuery('#section-banner_rand_n').fadeToggle(400);
});
if (jQuery... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/module/options/options-framework.php | module/options/options-framework.php | <?php
/**
* Options Framework
*
* @package Options Framework
* @author Devin Price <devin@wptheming.com>
* @license GPL-2.0+
* @link http://wptheming.com
* @copyright 2010-2014 WP Theming
*
* @wordpress-plugin
* Plugin Name: Options Framework
* Plugin URI: http://wptheming.com
* Description: A ... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/module/options/includes/class-options-framework-admin.php | module/options/includes/class-options-framework-admin.php | <?php
/**
* @package Options_Framework
* @author Devin Price <devin@wptheming.com>
* @license GPL-2.0+
* @link http://wptheming.com
* @copyright 2010-2014 WP Theming
*/
class Options_Framework_Admin {
/**
* Page hook for the options screen
*
* @since 1.7.0
* @type string
*/... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/module/options/includes/class-options-interface.php | module/options/includes/class-options-interface.php | <?php
/**
* @package Options_Framework
* @author Devin Price <devin@wptheming.com>
* @license GPL-2.0+
* @link http://wptheming.com
* @copyright 2010-2014 WP Theming
*/
class Options_Framework_Interface {
/**
* Generates the tabs that are used in the options menu
*/
static function optionsfram... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/module/options/includes/class-options-sanitization.php | module/options/includes/class-options-sanitization.php | <?php
/**
* @package Options_Framework
* @author Devin Price <devin@wptheming.com>
* @license GPL-2.0+
* @link http://wptheming.com
* @copyright 2010-2014 WP Theming
*/
/**
* Sanitization for text input
*
* @link http://developer.wordpress.org/reference/functions/sanitize_text_field/
*/
add_filte... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/module/options/includes/class-options-media-uploader.php | module/options/includes/class-options-media-uploader.php | <?php
/**
* @package Options_Framework
* @author Devin Price <devin@wptheming.com>
* @license GPL-2.0+
* @link http://wptheming.com
* @copyright 2010-2014 WP Theming
*/
class Options_Framework_Media_Uploader {
/**
* Initialize the media uploader class
*
* @since 1.7.0
*/
public function in... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/module/options/includes/class-options-framework.php | module/options/includes/class-options-framework.php | <?php
/**
* @package Options_Framework
* @author Devin Price <devin@wptheming.com>
* @license GPL-2.0+
* @link http://wptheming.com
* @copyright 2010-2014 WP Theming
*/
class Options_Framework {
/**
* Plugin version, used for cache-busting of style and script file references.
*
* @since 1.7.0... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/component/page-login.php | component/page-login.php | <?php
/**
* Template Name: Boxmoe登录模板
* 防止刷新页面重复提交数据
*/
if(!isset($_SESSION))
session_start();
if( isset($_POST['md_token']) && ($_POST['md_token'] == $_SESSION['md_token'])) {
$error = '';
$secure_cookie = false;
$user_name = sanitize_user( $_POST['log'] );
$user_password = $_POST['pwd'];
if ( empt... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/component/page-sign-up.php | component/page-sign-up.php | <?php
/*Template Name: Boxmoe注册模板*/
//如果用户已经登陆那么跳转到首页
if (is_user_logged_in()){
wp_safe_redirect( get_option('home') );
exit;
}
//获取注册页面提交时候的表单数据
if( !empty($_POST['csyor_reg']) ) {
$error = '';
$redirect_to = boxmoe_com('users_page');
$sanitized_user_login = sanitize_user( $_POST['user_login'] );
$us... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/component/blog-list.php | component/blog-list.php | <?php
/**
*Boxmoe.com
*/
?>
<div class="entry-blog <?php echo bm_border() ?> wow zoomIn">
<div class="entry-blog-listing clearfix">
<div class="post-standard-view">
<div class="entry-blog-list-left">
<div class="featured-image">
... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/component/blog-list-row.php | component/blog-list-row.php | <?php
/**
*blog-list.
*boxmoe.com
*
*/
?> <div class="col-md-4 wow zoomIn">
<a <?php _post_target_blank() ?> href="<?php echo get_permalink() ?>" title="<?php echo get_the_title().get_the_subtitle(false).bm_connector().get_bloginfo('name')?>" class="blog-l... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/component/page-members.php | component/page-members.php | <?php
/*
* Template Name: Boxmoe会员中心
*/
get_header();?>
<?php if(!is_user_logged_in()){echo "<script>window.location.href='".wp_login_url()."';</script>";}?>
<?php if(is_user_logged_in() ) {
global $wpdb;
$user_info=wp_get_current_user();
function mobantu_paging($type,$paged,$max_page) {
if ( $max_page <= 1 ) retu... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | true |
baomihuahua/boxmoe-dove- | https://github.com/baomihuahua/boxmoe-dove-/blob/13e89948acf3051a1f730aa2b305086b9cae9eaa/component/page-links.php | component/page-links.php | <?php
/*
* Template Name: 友情链接模板
*/
get_header();
?>
<section class="section">
<div class="container">
<div class="section-head">
<span>Page</span></div>
<div class="row justify-content-center align-items-center">
<div class="col-lg-12 col-md-12">
<?php while (h... | php | Apache-2.0 | 13e89948acf3051a1f730aa2b305086b9cae9eaa | 2026-01-05T02:24:14.449403Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/rector.php | rector.php | <?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Php83\Rector\ClassMethod\AddOverrideAttributeToOverriddenMethodsRector;
return RectorConfig::configure()
->withPaths([
__DIR__.'/src',
__DIR__.'/tests',
__DIR__.'/types',
])
->withSkip([
AddOverrideA... | php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/src/Type.php | src/Type.php | <?php
declare(strict_types=1);
namespace PinkaryProject\TypeGuard;
use TypeError;
/**
* @internal
*
* @template TVariable
*/
final readonly class Type
{
/**
* Create a new type instance.
*
* @param TVariable $variable
*/
public function __construct(private mixed $variable)
{
... | php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/src/Functions.php | src/Functions.php | <?php
declare(strict_types=1);
use PinkaryProject\TypeGuard\Type;
if (! function_exists('type')) {
/**
* Create a new type instance.
*
* @template TVariable
*
* @param TVariable $variable
* @return Type<TVariable>
*/
function type(mixed $variable): Type
{
retu... | php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/src/Not.php | src/Not.php | <?php
declare(strict_types=1);
namespace PinkaryProject\TypeGuard;
use TypeError;
/**
* @internal
*
* @template TVariable
*/
final readonly class Not
{
/**
* Create a new type instance.
*
* @param TVariable $variable
*/
public function __construct(private mixed $variable)
{
... | php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/tests/AsArrayTest.php | tests/AsArrayTest.php | <?php
declare(strict_types=1);
test('array type', function (): void {
$variable = [];
$value = type($variable)->asArray();
expect($value)->toBeArray();
});
test('not array type', function (): void {
$variable = 7415541;
type($variable)->asArray();
})->throws(TypeError::class, 'Variable is not ... | php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/tests/AsCallableTest.php | tests/AsCallableTest.php | <?php
declare(strict_types=1);
test('callable type', function (): void {
$variable = fn (): null => null;
$value = type($variable)->asCallable();
expect($value)->toBeCallable();
});
test('not callable type', function (): void {
$variable = 7415541;
type($variable)->asCallable();
})->throws(Typ... | php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/tests/IsBoolTest.php | tests/IsBoolTest.php | <?php
declare(strict_types=1);
test('boolean type', function (): void {
$variable = true;
$value = type($variable)->asBool();
expect($value)->toBeBool();
});
test('not boolean type', function (): void {
$variable = 7415541;
type($variable)->asBool();
})->throws(TypeError::class, 'Variable is n... | php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/tests/AsIterableTest.php | tests/AsIterableTest.php | <?php
declare(strict_types=1);
test('iterable type', function (): void {
$variable = [];
$value = type($variable)->asIterable();
expect($value)->toBeIterable();
});
test('not iterable type', function (): void {
$variable = 1;
type($variable)->asIterable();
})->throws(TypeError::class, 'Variabl... | php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/tests/AsIntTest.php | tests/AsIntTest.php | <?php
declare(strict_types=1);
test('integer type', function (): void {
$variable = 7415541;
$value = type($variable)->asInt();
expect($value)->toBeInt();
});
test('not integer type', function (): void {
$variable = 'string';
type($variable)->asInt();
})->throws(TypeError::class, 'Variable is ... | php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/tests/AsTest.php | tests/AsTest.php | <?php
declare(strict_types=1);
final class User
{
}
test('object type', function (): void {
$variable = new User;
$value = type($variable)->as(User::class);
expect($value)->toBe($variable);
});
test('not string type', function (): void {
$variable = null;
type($variable)->as(User::class);
})-... | php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/tests/NotTest.php | tests/NotTest.php | <?php
declare(strict_types=1);
test('not null type', function (): void {
$variable = 7415541;
$variable = type($variable)->not()->null();
expect($variable)->toBeInt();
});
test('null type', function (): void {
$variable = null;
type($variable)->not()->null();
})->throws(TypeError::class, 'Vari... | php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/tests/AsNullTest.php | tests/AsNullTest.php | <?php
declare(strict_types=1);
test('null type', function (): void {
$variable = null;
$value = type($variable)->asNull();
expect($value)->toBeNull();
});
test('not null', function (): void {
$variable = [];
type($variable)->asNull();
})->throws(TypeError::class, 'Variable is not a [null].');
| php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/tests/AsFloatTest.php | tests/AsFloatTest.php | <?php
declare(strict_types=1);
test('float type', function (): void {
$variable = 7415.541;
$value = type($variable)->asFloat();
expect($value)->toBeFloat();
});
test('not float type', function (): void {
$variable = 7415541;
type($variable)->asFloat();
})->throws(TypeError::class, 'Variable i... | php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/tests/AsStringTest.php | tests/AsStringTest.php | <?php
declare(strict_types=1);
test('string type', function (): void {
$variable = 'string';
$value = type($variable)->asString();
expect($value)->toBeString();
});
test('not string type', function (): void {
$variable = 1;
type($variable)->asString();
})->throws(TypeError::class, 'Variable is... | php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/types/AsArrayTest.php | types/AsArrayTest.php | <?php
declare(strict_types=1);
use function PHPStan\Testing\assertType;
/** @var array<int, int>|string $variable */
$variable = random_int(0, 1) !== 0 ? 'string' : [1, 2];
assertType('array<int, int>', type($variable)->asArray());
$variable = random_int(0, 1) !== 0 ? 'string' : [1, 2];
assertType('array{int, int}'... | php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/types/AsCallableTest.php | types/AsCallableTest.php | <?php
declare(strict_types=1);
use function PHPStan\Testing\assertType;
$variable = random_int(0, 1) !== 0 ? 'string' : fn (): null => null;
assertType('callable-string|(Closure(): null)', type($variable)->asCallable());
$variable = random_int(0, 1) !== 0 ? 'string' : fn (): int => 123;
assertType('callable-string|... | php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/types/AsIterableTest.php | types/AsIterableTest.php | <?php
declare(strict_types=1);
use function PHPStan\Testing\assertType;
/** @var array<int, int>|string $variable */
$variable = random_int(0, 1) !== 0 ? 'string' : [1, 2];
assertType('array<int, int>', type($variable)->asIterable());
$variable = random_int(0, 1) !== 0 ? 'string' : [];
assertType('array{}', type($v... | php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/types/AsIntTest.php | types/AsIntTest.php | <?php
declare(strict_types=1);
use function PHPStan\Testing\assertType;
$variable = random_int(0, 1) !== 0 ? 'string' : 1;
assertType('int', type($variable)->asInt());
| php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/types/AsTest.php | types/AsTest.php | <?php
declare(strict_types=1);
use function PHPStan\Testing\assertType;
final class User
{
}
/**
* @template TKey
* @template TValue
*/
final class Collection
{
}
$variable = random_int(0, 1) !== 0 ? null : new User();
assertType(User::class, type($variable)->as(User::class));
/** @var Collection<int, User>|nu... | php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/types/NotTest.php | types/NotTest.php | <?php
declare(strict_types=1);
use function PHPStan\Testing\assertType;
final class User
{
}
$variable = random_int(0, 1) !== 0 ? null : new User();
assertType(User::class, type($variable)->not()->null());
| php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/types/AsNullTest.php | types/AsNullTest.php | <?php
declare(strict_types=1);
use function PHPStan\Testing\assertType;
$variable = random_int(0, 1) !== 0 ? [] : null;
assertType('null', type($variable)->asNull());
| php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/types/AsBoolTest.php | types/AsBoolTest.php | <?php
declare(strict_types=1);
use function PHPStan\Testing\assertType;
$variable = random_int(0, 1) !== 0 ? 'string' : true;
assertType('bool', type($variable)->asBool());
| php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/types/AsFloatTest.php | types/AsFloatTest.php | <?php
declare(strict_types=1);
use function PHPStan\Testing\assertType;
$variable = random_int(0, 1) !== 0 ? 7415.541 : 7415541;
assertType('float', type($variable)->asFloat());
| php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
pinkary-project/type-guard | https://github.com/pinkary-project/type-guard/blob/d7dfb701f71269ed74d93bcf857c28aa25eceff1/types/AsStringTest.php | types/AsStringTest.php | <?php
declare(strict_types=1);
use function PHPStan\Testing\assertType;
$variable = random_int(0, 1) !== 0 ? 'string' : 1;
assertType('string', type($variable)->asString());
| php | MIT | d7dfb701f71269ed74d93bcf857c28aa25eceff1 | 2026-01-05T02:24:14.885226Z | false |
jakeasmith/http_build_url | https://github.com/jakeasmith/http_build_url/blob/93c273e77cb1edead0cf8bcf8cd2003428e74e37/src/http_build_url.php | src/http_build_url.php | <?php
/**
* URL constants as defined in the PHP Manual under "Constants usable with
* http_build_url()".
*
* @see http://us2.php.net/manual/en/http.constants.php#http.constants.url
*/
if (!defined('HTTP_URL_REPLACE')) {
define('HTTP_URL_REPLACE', 1);
}
if (!defined('HTTP_URL_JOIN_PATH')) {
define('HTTP_URL_JOIN... | php | MIT | 93c273e77cb1edead0cf8bcf8cd2003428e74e37 | 2026-01-05T02:24:31.100672Z | false |
jakeasmith/http_build_url | https://github.com/jakeasmith/http_build_url/blob/93c273e77cb1edead0cf8bcf8cd2003428e74e37/tests/HttpBuildUrlTest.php | tests/HttpBuildUrlTest.php | <?php
class HttpBuildUrlTest extends \PHPUnit_Framework_TestCase
{
private $full_url = "http://user:pass@www.example.com:8080/pub/index.php?a=b#files";
/**
* Test example one.
*
* @see http://us2.php.net/manual/en/function.http-build-url.php
*/
public function testExampleOne()
{
$expected = 'ftp://ftp.e... | php | MIT | 93c273e77cb1edead0cf8bcf8cd2003428e74e37 | 2026-01-05T02:24:31.100672Z | false |
jakeasmith/http_build_url | https://github.com/jakeasmith/http_build_url/blob/93c273e77cb1edead0cf8bcf8cd2003428e74e37/tests/bootstrap.php | tests/bootstrap.php | <?php
require dirname( __DIR__ ) . '/src/http_build_url.php';
// PHPUnit 6 compatibility for previous versions
if ( class_exists( 'PHPUnit\Runner\Version' ) && version_compare( PHPUnit\Runner\Version::id(), '6.0', '>=' ) ) {
class_alias( 'PHPUnit\Framework\Assert', 'PHPUnit_Framework_Assert' );
class_al... | php | MIT | 93c273e77cb1edead0cf8bcf8cd2003428e74e37 | 2026-01-05T02:24:31.100672Z | false |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/footer.php | footer.php | <div class="rollbar" id="BackTop" style="display: none;">
<?php foreach(_qzdy('opt-checkbox-2') as $ii ) {
if($ii=='c-comment'){
if(is_single()||is_page()){
echo $cc ='<a href="#comments"><div class="rollbar-item tap-dark" etap="tap-dark" title="评论"><i class="fa fa-comments"></i></div></a>';
}... | php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | false |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/archive-weiyu.php | archive-weiyu.php | <?php
/*
Namess: 微语分类
*/
?>
<?php get_header();?>
<div class="layui-content">
<div class="layui-container">
<div class="layui-row flex layui-col-space15 main <?php qzdy_sidebar_fangxiang();?>">
<div class="layui-col-md9 layui-col-lg9">
<div class="paging-aa text" id="paging-aa">
<?php if ( ... | php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | false |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/page.php | page.php | <?php
/* template name: 页面模板--双栏
*/
?>
<?php get_header();?>
<!--上面是头部-->
<div class="layui-content">
<div class="layui-container">
<div class="layui-row flex layui-col-space15 main <?php qzdy_sidebar_fangxiang(); ?>">
<div class="layui-col-md9 layui-col-lg9">
<!--内容开始-->
<div class="title-article... | php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | false |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/archive.php | archive.php | <?php
/*
Namess: 秋之德雨默认归档theme
*/
?>
<?php get_header();?>
<div class="layui-content">
<div class="layui-container">
<div class="map pagemap">
<?php if ( function_exists('ah_breadcrumb') ) ah_breadcrumb(); ?>
</div>
<div class="layui-row flex layui-col-space15 main <?php qzdy_sidebar_fangxiang... | php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | false |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/comments.php | comments.php | <?php
// @回复人
function comment_add_at( $comment_text, $comment = '') { if( $comment->comment_parent > 0) { $comment_text = '<a rel="nofollow" class="comment_at" href="#comment-' . $comment->comment_parent . '">@'.get_comment_author( $comment->comment_parent ) . ':</a> ' .
$comment_text; } return $comment_text; } add_fi... | php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | false |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/qzdy_fun.php | qzdy_fun.php | <?php
ini_set("error_reporting","E_ALL & ~E_NOTICE");
if (! function_exists('_qzdy')) {
function _qzdy($option = '', $default = null) {
$options = get_option('my_framework');
return (isset($options[$option])) ? $options[$option] : $default;
}}
function _get_category_tags($args) {
if (empty($arg... | php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | true |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/smiley.php | smiley.php | <script type="text/javascript">
/* <![CDATA[ */
function grin(tag) {
var myField;
tag = ' ' + tag + ' ';
if (document.getElementById('comment') && document.getElementById('comment').type == 'textarea') {
myField = document.getElementById('comment');
} else {
return false;
}
... | php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | false |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/category.php | category.php | <?php
ini_set("error_reporting","E_ALL & ~E_NOTICE");
if (! defined('ABSPATH')) {
exit;
}
$cat_ID = get_query_var('cat');
if($card_mode = get_term_meta( $cat_ID, '_zero-classification-theme-1', true )){
if($card_mode == 'theme_1'){
include(TEMPLATEPATH . '/category/category-default.php');
}elseif($card_mode... | php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | false |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/home-yao.php | home-yao.php |
<?php if(is_home()&&!is_paged()) { ?>
<?php
if(_qzdy('zero-index-bannerkg') == true){?>
<?php
if(!empty(_qzdy('opt-group-topping-zhiding'))){?>
<div class="layui-carousel" id="test1">
<div class="qzdylbtnbox" carousel-item>
<?php
$qt_header_tp = _qzdy('opt-group-topping-zhiding');
foreach ($qt_header_tp ... | php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | false |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/search.php | search.php | <!--搜索theme-->
<?php get_header();?>
<div class="layui-content">
<div class="layui-container">
<div class="layui-row flex layui-col-space15 main <?php qzdy_sidebar_fangxiang(); ?>">
<div class="layui-col-md9 layui-col-lg9">
<div class="map">
<?php if ( function_exists('ah_breadcrumb') ) ah_breadcrumb(); ?>
</div>
... | php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | false |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/link.php | link.php | <?php
/* template name: 页面模板--友情链接展示
*/
?>
<?php get_header();?>
<!--上面是头部-->
<div class="layui-content">
<div class="layui-container">
<div class="layui-row layui-col-space15 flex main <?php qzdy_sidebar_fangxiang();?>">
<div class="layui-col-md9 layui-col-lg9">
<!--内容开始-->
<div class="title-arti... | php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | false |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/tag.php | tag.php | <?php
/*
Name: 秋之德雨默认tag
*/
// Q-Q交-流群:9173673-58
?>
<?php get_header();?>
<div class="layui-content">
<div class="layui-container">
<div class="map pagemap">
<?php if ( function_exists('ah_breadcrumb') ) ah_breadcrumb(); ?>
</div>
<div class="layui-row flex layui-col-space15 main <?php qzdy_sideba... | php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | false |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/timthumb.php | timthumb.php | <?php
/**
* 作者唯一QQ:858896214 (秋知德雨)
* QQ交流群:917367358
* 开发者不易,感谢支持,如果使用本主题尽量留个版权或者链接
*/
?>
<?php
/**
* TimThumb by Ben Gillbanks and Mark Maunder
* Based on work done by Tim McDaniels and Darren Hoyt
* http://code.google.com/p/timthumb/
*
* GNU General Public License, version 2
* http://www.gnu.org/licenses... | php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | true |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/functions.php | functions.php | <?php
require 'qzdy_fun.php';
// 添加代码请添加在下面
// Q-Q交-流群:9173673-58
| php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | false |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/index.php | index.php | <?php
// Q-Q交-流群:9173673-58
// 作者博客:https://www.aj0.cn/
if (! defined('ABSPATH')) {
exit;
}
if(_qzdy('opt-index-buju') == 'opt_blog'){
get_template_part('/hometemplate/index_blog');
}
if(_qzdy('opt-index-buju') == 'opt_img'){
get_template_part('/hometemplate/index_jgg');
}
?> | php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | false |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/404.php | 404.php | <?php get_header();?>
<div class="layui-content">
<div class="layui-container">
<div class="layui-row flex layui-col-space15 main <?php qzdy_sidebar_fangxiang();?>">
<div class="layui-col-md9 layui-col-lg9">
<div class="map">
<?php if ( function_exists('ah_breadcrumb') ) ah_breadcrumb(); ?>
</div>
... | php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | false |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/header.php | header.php | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php if (function_exists('is_tag') && is_tag()) {
single_tag_title('Tag Archive for "'); echo '"_';
} elseif (is_archive()) {
wp_title(''); echo '_'; bloginfo('description');echo '_';
} elseif (is_search()) {
echo 'Search for "'.wp_specialchars($s).'... | php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | false |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/single-weiyu.php | single-weiyu.php | <?php
get_header(); ?>
<!--上面是头部-->
<div class="layui-content<?php echo qzdy_prevent_theme(); ?>">
<div class="layui-container<?php echo qzdy_prevent_theme(); ?>">
<div class="layui-row flex layui-col-space15 <?php qzdy_sidebar_fangxiang();?> main<?php echo qzdy_prevent_theme(); ?>">
<?php _zero_wz_autoMenu_ml_kg(); ... | php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | false |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/links.php | links.php | <?php
/* template name: 页面模板--友情链接自助申请
*/
?>
<?php
if( isset($_POST['blink_form']) && $_POST['blink_form'] == 'send'){
global $wpdb;
// 表单变量初始化
$link_name = isset( $_POST['blink_name'] ) ? trim(htmlspecialchars($_POST['blink_name'], ENT_QUOTES)) : '';
$link_url = isset( $_POST['blink_url'] ) ? trim(htmlspecialchars($... | php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | false |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/single.php | single.php | <?php
ini_set("error_reporting","E_ALL & ~E_NOTICE");
// Q-Q交-流群:9173673-58
// 作者博客:https://www.aj0.cn/
if (! defined('ABSPATH')) {
exit;
}
global $post_ID;
$cat_ID = get_query_var('cat');
$category=get_the_category( $post_ID );
$catid=$category[0]->term_id;
$flkgg=get_term_meta( $catid, '_zero-classificati... | php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | false |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/page-ym.php | page-ym.php | <?php
/* template name: 页面模板--单栏
*/
?>
<?php get_header();?>
<!--上面是头部-->
<div class="layui-content">
<div class="layui-container">
<div class="layui-row layui-col-space15 main">
<div class="layui-col-md12 layui-col-lg12">
<!--内容开始-->
<div class="title-article">
<h1><?php the_title(); ... | php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | false |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/sidebar.php | sidebar.php | <!--侧边栏-->
<div class="sidebar layui-col-md3 layui-col-lg3" <?php qzdy_sidebar_guanbi(); ?>>
<?php
if (is_single()||is_page()){
dynamic_sidebar('sidebar-02');
}else {
dynamic_sidebar('sidebar-01');
}?>
</div>
<!-- 侧边栏结束--> | php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | false |
muchenkezhan/wordpress-qzdy-themes | https://github.com/muchenkezhan/wordpress-qzdy-themes/blob/a43795dac80d37a30d69755c4ce4adad86b02025/tags.php | tags.php | <?php
/* Template Name: 页面模板--Tags
*/
?>
<?php get_header();?>
<!--上面是头部-->
<div class="layui-content">
<div class="layui-container">
<div class="layui-row layui-col-space15 main">
<div class="layui-col-md12 layui-col-lg12">
<!--内容开始-->
<div class="title-article">
<h1><?php the_title()... | php | MIT | a43795dac80d37a30d69755c4ce4adad86b02025 | 2026-01-05T02:24:17.566001Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.