www.archline.hu — clean post-compromise baseline #2
28
deployed/mod_helloworld/modules/mod_helloworld/helper.php
Normal file
28
deployed/mod_helloworld/modules/mod_helloworld/helper.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Helper class for Hello World! module
|
||||
*
|
||||
* @package Joomla.Tutorials
|
||||
* @subpackage Modules
|
||||
* @link http://docs.joomla.org/J3.x:Creating_a_simple_module/Developing_a_Basic_Module
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
* mod_helloworld 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.
|
||||
*/
|
||||
|
||||
class ModHelloWorldHelper {
|
||||
/**
|
||||
* Retrieves the hello message
|
||||
*
|
||||
* @param array $params An object containing the module parameters
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
|
||||
public static function getHello($params) {
|
||||
return 'Hello, World!';
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,3 @@
|
||||
<html>
|
||||
<body> Welcome to Tutorials Point!!!!! </body>
|
||||
</html>
|
||||
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* Hello World! Module Entry Point
|
||||
*
|
||||
* @package Joomla.Tutorials
|
||||
* @subpackage Modules
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
* @link http://docs.joomla.org/J3.x:Creating_a_simple_module/Developing_a_Basic_Module
|
||||
* mod_helloworld 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.
|
||||
*/
|
||||
|
||||
// No direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Include the syndicate functions only once
|
||||
require_once dirname(__FILE__) . '/helper.php';
|
||||
|
||||
$hello = modHelloWorldHelper::getHello($params);
|
||||
require JModuleHelper::getLayoutPath('mod_newsletter');
|
||||
?>
|
||||
@ -0,0 +1,18 @@
|
||||
<?xml version = "1.0" encoding = "utf-8"?>
|
||||
|
||||
<extension type = "module" version = "3.1.0" client = "site" method="upgrade">
|
||||
<name>Hello, World!</name>
|
||||
<author>Tutorials Point</author>
|
||||
<version>1.0.0</version>
|
||||
<description>A simple Hello World! module.</description>
|
||||
<files>
|
||||
<filename>mod_newsletter.xml</filename>
|
||||
<filename module = "mod_helloworld">mod_newsletter.php</filename>
|
||||
<filename>index.html</filename>
|
||||
<filename>helper.php</filename>
|
||||
<filename>tmpl/default.php</filename>
|
||||
<filename>tmpl/index.html</filename>
|
||||
</files>
|
||||
<config>
|
||||
</config>
|
||||
</extension>
|
||||
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_firstmodule
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
|
||||
<p>Hello World!!!!!!</p>
|
||||
@ -0,0 +1,3 @@
|
||||
<html>
|
||||
<body> Welcome to Tutorials Point!!!!! </body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue
Block a user