• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP yourls_html_logo函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: show404

function show404($shorturl)
{
    yourls_status_header(404);
    yourls_html_head('page404', 'This page does not exist');
    yourls_html_logo();
    ?>

<div class="main-column">
	<div class="panel panel-teaser">
		<div class="panel-header">
			<h1>Page Not Found</h1>
		</div>
		<div class="panel-body">
			<p>Leider konnten wir keine Adresse unter dem Kürzel <strong><?php 
    echo $shorturl;
    ?>
</strong> finden.
			Das bedeutet, dass diese Kurz-URL nicht existiert.
		</div>
	</div>
</div>
<div class="sidebar-column">

	<div class="panel panel-sidebar">
		<h2>Über den Kurz-URL-Dienst</h2>
		<div class="panel-body">
			<span class="caret"></span>

			<p>Auf der Website <?php 
    echo $_SERVER['SERVER_NAME'];
    ?>
 lassen sich Kurzlinks
			zu Ressourcen der <a href="http://www.uni-frankfurt.de/">Goethe-Universität Frankfurt</a>
			erstellen. <a href="/">Zur Startseite</a>
		</div>
	</div>

</div>


<?php 
    yourls_html_footer();
}
开发者ID:mimischi,项目名称:gu-urlshorter,代码行数:43,代码来源:404.php


示例2: ozh_preview_show

function ozh_preview_show($keyword)
{
    require_once YOURLS_INC . '/functions-html.php';
    yourls_html_head('preview', 'Short URL preview');
    yourls_html_logo();
    $title = yourls_get_keyword_title($keyword);
    $url = yourls_get_keyword_longurl($keyword);
    $base = YOURLS_SITE;
    $char = OZH_PREVIEW_CHAR;
    echo <<<HTML
        <h2>Link Preview</h2>
        <p>You requested the short URL <strong><a href="{$base}/{$keyword}">{$base}/{$keyword}</a></strong></p>
        <p>This short URL points to:</p>
        <ul>
        <li>Long URL: <strong><a href="{$base}/{$keyword}">{$url}</a></strong></li>
        <li>Page title: <strong>{$title}</strong></li>
        </ul>
        <p>If you still want to visit this link, please <strong><a href="{$base}/{$keyword}">click here</a></strong>.</p>

        <p>Thank you for using our shortening service.</p>
HTML;
    yourls_html_footer();
}
开发者ID:Efreak,项目名称:YOURLS,代码行数:23,代码来源:plugin.php


示例3: print_r

    	echo "<pre>";
    	echo "referrers: "; print_r( $referrers );
    	echo "referrer sort: "; print_r( $referrer_sort );
    	echo "direct: $direct\n";
    	echo "notdirect: $notdirect\n";
    	echo "dates: "; print_r( $dates );
    	echo "list of days: "; print_r( $list_of_days );
    	echo "list_of_months: "; print_r( $list_of_months );
    	echo "list_of_years: "; print_r( $list_of_years );
    	echo "last_24h: "; print_r( $last_24h );
    	echo "countries: "; print_r( $countries );
    	die();
    	/**/
}
yourls_html_head('infos', yourls_s('Statistics for %s', YOURLS_SITE . '/' . $keyword));
yourls_html_logo();
//yourls_html_menu();
?>

<div class="panel panel-teaser">
<div class="panel-header">
	<h2 id="informations"><?php 
echo yourls_esc_html($title);
?>
</h2>
</div>
<div class="panel-body">

<h3><span class="label"><?php 
yourls_e('Short URL');
?>
开发者ID:mimischi,项目名称:gu-urlshorter,代码行数:31,代码来源:yourls-infos.php


示例4: yourls_login_screen

function yourls_login_screen($error_msg = '')
{
    yourls_html_head('login');
    $action = isset($_GET['mode']) && $_GET['mode'] == 'logout' ? '?' : '';
    yourls_html_logo();
    ?>
	<div id="login">
		<form method="post" action="<?php 
    echo $action;
    ?>
"> <?php 
    // reset any QUERY parameters
    ?>
			<?php 
    if (!empty($error_msg)) {
        echo '<p class="error">' . $error_msg . '</p>';
    }
    ?>
			<p>
				<label for="username">Username</label><br />
				<input type="text" id="username" name="username" size="30" class="text" />
			</p>
			<p>
				<label for="password">Password</label><br />
				<input type="password" id="password" name="password" size="30" class="text" />
			</p>
			<p style="text-align: right;">
				<input type="submit" id="submit" name="submit" value="Login" class="button" />
			</p>
		</form>
		<script type="text/javascript">$('#username').focus();</script>
	</div>
	<?php 
    yourls_html_footer();
    die;
}
开发者ID:momoim,项目名称:momo-api,代码行数:36,代码来源:functions-html.php


示例5: yourls_plugin_admin_page

/**
 * Handle plugin administration page
 *
 */
function yourls_plugin_admin_page($plugin_page)
{
    global $ydb;
    // Check the plugin page is actually registered
    if (!isset($ydb->plugin_pages[$plugin_page])) {
        yourls_die('This page does not exist. Maybe a plugin you thought was activated is inactive?', 'Invalid link');
    }
    // Draw the page itself
    yourls_do_action('load-' . $plugin_page);
    yourls_html_head('plugin_page_' . $plugin_page, $ydb->plugin_pages[$plugin_page]['title']);
    yourls_html_logo();
    yourls_html_menu();
    call_user_func($ydb->plugin_pages[$plugin_page]['function']);
    yourls_html_footer();
    die;
}
开发者ID:469306621,项目名称:Languages,代码行数:20,代码来源:functions-plugins.php


示例6: action_auth_successful

 /**
  * Yourls action auth_successful
  *
  * @return bool
  */
 public function action_auth_successful()
 {
     if (!yourls_is_admin()) {
         return true;
     }
     /**
      * Check page permissions
      */
     if (preg_match('#\\/admin\\/(.*?)\\.php#', $_SERVER['SCRIPT_FILENAME'], $matches)) {
         if (!in_array($matches[1], $this->helperGetAllowedPermissions())) {
             yourls_add_notice(yourls__('Denied access to this page', self::APP_NAMESPACE));
             yourls_html_head('accessdenied', yourls__('Denied access to this page', self::APP_NAMESPACE));
             yourls_html_logo();
             yourls_html_menu();
             yourls_html_footer();
             die;
         }
     }
     /**
      * Check action permissions
      */
     if (yourls_is_Ajax()) {
         $action = $this->getRequest('action');
         $permissions = $this->helperGetAllowedPermissions();
         $bol = false;
         switch ($action) {
             case 'edit_display':
             case 'edit_save':
                 if (!in_array('edit', $permissions['action'])) {
                     $bol = true;
                 }
                 break;
             case 'add':
             case 'delete':
                 if (!in_array($action, $permissions['action'])) {
                     $bol = true;
                 }
                 break;
         }
         if ($bol) {
             $this->setRequest('action_old', $action);
             $this->setRequest('action', 'accessdenied');
         }
     }
 }
开发者ID:laemmi,项目名称:laemmi-yourls-easy-ldap,代码行数:50,代码来源:Plugin.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP yourls_html_menu函数代码示例发布时间:2022-05-23
下一篇:
PHP yourls_html_head函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap