Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<?php
2
/**
3
 * Copyright (C) 2009-2019 www.seopanel.in. All rights reserved.
4
 * @author Geo Varghese
5
 *
6
 */
7
 
8
$dirpath = realpath(dirname(__FILE__));
9
$spLoadFile = "$dirpath/../../includes/sp-load.php";
10
$spLoadFileExist = true;
11
if (!file_exists($spLoadFile)) {
12
    $dirpath = str_ireplace('/plugins/SeoDiary/diarycron.php', '', $_SERVER['SCRIPT_FILENAME']);
13
    $spLoadFile = $dirpath."/includes/sp-load.php";
14
    $spLoadFileExist = !file_exists($spLoadFile) ? false : true;
15
}
16
 
17
// check wheteher load file exists
18
if ($spLoadFileExist) {
19
    include_once($spLoadFile);
20
    /*if (empty($_SERVER['REQUEST_METHOD'])) {*/
21
    if (empty($_SERVER['REQUEST_METHOD'])) {
22
 
23
        include_once(SP_CTRLPATH."/seoplugins.ctrl.php");
24
        $controller = New SeoPluginsController();
25
        $pluginInfo = $controller->__getSeoPluginInfo('SeoDiary', 'name');
26
        $info['pid'] = $pluginInfo['id'];
27
        $info['action'] = "cronJob";
28
        $_GET['doc_type'] = 'export';
29
        $controller->manageSeoPlugins($info, "get", true);
30
 
31
    /*} else {
32
    } else {
33
        showErrorMsg("<p style='color:red'>You don't have permission to access this page!</p>");
34
    }*/
35
    }
36
} else {
37
    echo "Seo Panel Bootstrap loader file not accessible!";
38
}
39
?>