/var/www/hkosl.com/aga/wp-content/plugins/smart-slider-3/nextend/nextend.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php

defined
('N2GSAP') || define('N2GSAP'1);
if (!
defined("N2_PLATFORM_LIBRARY")) define('N2_PLATFORM_LIBRARY'dirname(__FILE__) . '/wordpress');

define('N2WORDPRESS'1);
define('N2JOOMLA'0);
define('N2MAGENTO'0);
define('N2NATIVE'0);

require_once(
dirname(__FILE__) . DIRECTORY_SEPARATOR 'library' DIRECTORY_SEPARATOR 'library.php');
require_once(
dirname(__FILE__) . DIRECTORY_SEPARATOR 'wordpress' DIRECTORY_SEPARATOR 'assetInjector.php');

class 
N2WP {

    public static function 
init() {
        
N2WP::registerApplication();

        
add_action('admin_menu''N2WP::nextendApplicationInit');
    }

    public static function 
registerApplication() {
        
N2Base::registerApplication(dirname(__FILE__) . '/library/applications/system/N2SystemApplicationInfo.php');
        
N2Base::getApplication('system')
              ->
getApplicationType('backend');
    }

    public static function 
nextendApplicationInit() {
        
add_submenu_page(null'Nextend''Nextend''nextend''nextend''N2WP::nextendApplication');

        function 
nextend_admin_menu() {
            echo 
'<style type="text/css">#adminmenu .toplevel_page_nextend .wp-menu-image img{opacity: 1;}</style>';
        }

        
add_action('admin_head''nextend_admin_menu');
    }

    public static function 
nextendApplication() {
        
N2Base::getApplication("system")
              ->
getApplicationType('backend')
              ->
setCurrent()
              ->
render(array(
                  
"controller" => "dashboard",
                  
"action"     => "index"
              
));
        
n2_exit();
    }

    public static function 
install() {

        
N2Base::getApplication("system")
              ->
getApplicationType('backend')
              ->
render(array(
                  
"controller" => "install",
                  
"action"     => "index",
                  
"useRequest" => false
              
), array(true));
    }

    public static function 
delete_blog($blog_id$drop) {
        if (
$drop) {

            global 
$wpdb;
            
$prefix $wpdb->get_blog_prefix($blog_id);
            
$wpdb->query('DROP TABLE IF EXISTS ' $prefix 'nextend2_image_storage, ' $prefix 'nextend2_section_storage;');

        }
    }
}

N2WP::init();