-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdesktop.php
80 lines (65 loc) · 2.18 KB
/
desktop.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
72
73
74
75
76
77
78
79
<?php
/**
* @package Gamuza_Desktop
* @description Visual Component Library for Magento
* @copyright Copyright (c) 2017 Gamuza Technologies (http://www.gamuza.com.br/)
* @author Eneias Ramos de Melo <eneias@gamuza.com.br>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
/**
* See the AUTHORS file for a list of people on the Gamuza Team.
* See the ChangeLog files for a list of changes.
* These files are distributed with gamuza_desktop-magento at http://github.com/gamuzatech/.
*/
/**
* Error reporting
*/
ini_set ('display_errors', 1);
ini_set ('error_reporting', E_ALL);
/**
* Startup configuration
*/
chdir (dirname (__FILE__));
define ('MAGENTO_ROOT', getcwd ());
define ('D_S', DIRECTORY_SEPARATOR);
@ include MAGENTO_ROOT . D_S . 'includes' . D_S . 'config.php';
@ include MAGENTO_ROOT . D_S . 'app' . D_S . 'bootstrap.php';
require MAGENTO_ROOT . D_S . 'app' . D_S . 'Mage.php';
require MAGENTO_ROOT . D_S . 'app' . D_S . 'Desktop.php';
# Varien_Profiler::enable ();
global $Application;
global $Welcome;
try
{
$Application->Init ();
/*
if (!Mage::isInstalled ())
{
echo 'Gamuza Desktop is not installed yet, please complete install wizard first.' . PHP_EOL;
exit (1);
}
*/
$Welcome = $Application->CreateWindow ('desktop/welcome');
$Welcome->Show ();
$Application->Run ();
}
catch (Exception $e)
{
$Application->ShowException ($e);
// echo ' ! Application Exception : ' . $e->getMessage () . PHP_EOL;
// exit (1);
}