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


PHP GoogleSitemapGenerator::Enable方法代码示例

本文整理汇总了PHP中GoogleSitemapGenerator::Enable方法的典型用法代码示例。如果您正苦于以下问题:PHP GoogleSitemapGenerator::Enable方法的具体用法?PHP GoogleSitemapGenerator::Enable怎么用?PHP GoogleSitemapGenerator::Enable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GoogleSitemapGenerator的用法示例。


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

示例1: LoadPlugin

 /**
  * Loads the actual generator class and tries to raise the memory and time limits if not already done by WP
  *
  * @return boolean true if run successfully
  */
 function LoadPlugin()
 {
     $mem = abs(intval(@ini_get('memory_limit')));
     if ($mem && $mem < 32) {
         @ini_set('memory_limit', '32M');
     }
     $time = abs(intval(@ini_get("max_execution_time")));
     if ($time != 0 && $time < 120) {
         @set_time_limit(120);
     }
     if (!class_exists("GoogleSitemapGenerator")) {
         $path = trailingslashit(dirname(__FILE__));
         if (!file_exists($path . 'sitemap-core.php')) {
             return false;
         }
         require_once $path . 'sitemap-core.php';
     }
     GoogleSitemapGenerator::Enable();
     return true;
 }
开发者ID:sjcockell,项目名称:fuzzierlogic.blog,代码行数:25,代码来源:sitemap.php

示例2: header

						</table>
					</p>
				</fieldset>
			</form>
		</div>
		<script type="text/javascript">
		sm_addLinks();
		sm_gencode();
		</script>
		<?php 
    }
}
//Check if ABSPATH and WPINC is defined, this is done in wp-settings.php
//If not defined, we can't guarante that all required functions are available.
if (defined("ABSPATH") && defined("WPINC")) {
    GoogleSitemapGenerator::Enable();
}
//Embedded resources
if (isset($_GET["res"]) && !empty($_GET["res"])) {
    #region Images
    //Paypal
    if ($_GET["res"] == "{8C0BAD8C-77FA-4842-956E-CDEF7635F2C7}") {
        header("Content-Type: image/gif");
        echo base64_decode("R0lGODlhEAAQAMQQANbe5sjT3gAzZpGmvOTp7v///629zYSctK28zbvI1ZKnvfH094SbtHaQrHaRrJ+xxf///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAHoAxAALAAAAAAQABAAQAVZICSOZDkGQqGuBTqUSMqqiTACwqIKgGkKwCDwVRIodkDVwjYSMFSNoCNQIgSugZ6vBMBetSYCj0UwCA6lgyy4YoqWASRAZSYNZNaA+VxM7B5bEA9CboGGIyEAOw==");
        exit;
    }
    //Amazon
    if ($_GET["res"] == "{9866EAFC-3F85-44df-8A72-4CD1566E2D4F}") {
        header("Content-Type: image/gif");
        echo base64_decode("R0lGODlhEAAQAMQGADc1NVBOTmloaERCQl1bW9rZ2f///7Szs8rKyubm5nZ0dJuamvPy8qinp31gOLeDOuWgPPGnPM6SO05DNoKBgY+NjXFZN8OLOpRuOWZSN0M8NdqZO1pKNqB1OYhnOOrBhSwAAAAAEAAQAEAFeSAgBsIgnqiYGOxaAM4DRZE0AcOCMOyS/hxLR0KLPCaciEOEMCQKLMVPRIgCetPsaYLRXCKaIm3TuZ08mhMByjpoAQhE4GrwZaGMBnYq6OkNL1kBCwsUABUDFhcXGDIRGVMTDl8QExsSABcbYjQXkABDIh8XHQ5mWiEAOw==");
        exit;
开发者ID:jbogota,项目名称:blog-king,代码行数:31,代码来源:sitemap.php


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