-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall.joomleague.php
87 lines (75 loc) · 3.15 KB
/
install.joomleague.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
80
81
82
83
84
85
86
87
<?php
/**
* @copyright Copyright (C) 2005-2012 JoomLeague.net. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
// This function calls the installation routine for Joomla
function com_install()
{
return component_install();
}
function component_install()
{
return true;
}
// Install administrator module JLAdmin
function InstallModJLAdmin()
{
global $install_status;
$db =& JFactory::getDBO();
echo "Install administrator module JLAdmin - ";
// Build in a check if the module is already installed
// If so, don't install it again
// Install mod_jladmin
$module_installer = new JInstaller;
$status = new Status();
$status->status = $status->STATUS_FAIL;
if ($module_installer->install(dirname(__FILE__) . DS . 'mod_jladmin'))
{
$status->status = $status->STATUS_SUCCESS;
}
$install_status['mod_jladmin'] = $status;
return true;
}
// Enable mod_jpadmin
function EnableModJLAdmin()
{
$db =& JFactory::getDBO();
echo "Enabe administrator module JLAdmin - ";
$query = " UPDATE #__modules
SET published = 1,
position = 'icon'
WHERE module = 'mod_jladmin' ";
$db->setQuery($query);
if (!$db->query())
{
return false;
}
return true;
}
?>
<hr>
<h1>JoomLeague Installation</h1>
<?php
$updateArray = array();
include_once(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_joomleague'.DS.'assets'.DS.'updates'.DS.'jl_install.php');
?>
<h2>Welcome to JoomLeague!</h2>
<p>Undoubtedly, you are about to embark on many joyous hours of managing your Sports League.</p>
<p>To get started, navigate to Components then click on JoomLeague or just click the JoomLeague button on your Joomla control panel.</p>
<p>Before doing anything more, please check this link for the <a href="http://wiki.joomleague.net/doku.php?id=faq:howto">First steps</a> or read the Wiki-Contens, available on-line on our official site's <a href="http://wiki.joomleague.net/" target="_blank">JoomLeague Wiki</a>.</p>
<hr>
<p>Should you have any questions, comments or need some help, do not hesitate to post on our <a href="http://forum.joomleague.net" target="_blank">support forum</a>. Please also visit our Website if you want to help us to make JoomLeague better than it is now !</p>
<p>But... Pleeeeaaaaase...</p>
<p>Search for your question first before you ASK!!!<br />Many problems have been answered yet and we are sure you will find a solution for them just by searching in our support forum.</p>
<p>If not in your case??? Please ask us... <img src="../images/smilies/wink.gif" /></p>
<p>Remember: You can always get on-line help for the JoomLeague page you are currently viewing by clicking on the help icon in the top right corner of all backend configuration pages of the JoomLeague component.</p>
<img src="../media/com_joomleague/jl_images/joomleague_logo.png" alt="JoomLeague" title="JoomLeague" />
<hr />