/**
  * 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;
 }
Exemple #2
0
						</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;