This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @version 1.0 | |
* @package Joomla | |
* @subpackage JMVC | |
* @author Tuan Pham Ngoc | |
* @copyright Copyright (C) 2012 Ossolution Team | |
* @license GNU/GPL, see LICENSE.php | |
*/ | |
// no direct access |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Base Controller Class | |
* | |
* Note: Concrete controllers must have a singular name | |
* | |
* @author Joomla | |
* @package RAD_Controller | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @version 1.5.2 | |
* @package Joomla | |
* @subpackage Edocman | |
* @author Tuan Pham Ngoc | |
* @copyright Copyright (C) 2011 Ossolution Team | |
* @license GNU/GPL, see LICENSE.php | |
*/ | |
defined('_JEXEC') or die(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public static function currencyImport($from, $to) | |
{ | |
$url = 'http://finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s=' . $from . $to . '=X'; | |
$handle = @fopen($url, 'r'); | |
if ($handle) | |
{ | |
$result = fgets($handle, 4096); | |
fclose($handle); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function synscronize_data() | |
{ | |
$db = JFactory::getDbo(); | |
require_once JPATH_COMPONENT . '/table/subscriber.php'; | |
$row = JTable::getInstance('Subscriber', 'OSMembershipTable'); | |
$sql = 'SELECT id FROM #__osmembership_subscribers WHERE user_id > 0 AND (published >= 1 OR payment_method="os_offline") ORDER BY id'; | |
$db->setQuery($sql); | |
$subscriberIds = $db->loadColumn(); | |
foreach ($subscriberIds as $subscriberId) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
/** | |
* @version 1.6.5 | |
* @package Joomla | |
* @subpackage Event Booking | |
* @author Tuan Pham Ngoc | |
* @copyright Copyright (C) 2010 - 2014 Ossolution Team | |
* @license GNU/GPL, see LICENSE.php | |
*/ | |
class EventbookingHelperImage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<access component="com_edocman"> | |
<section name="component"> | |
<action name="core.admin" title="JACTION_ADMIN" description="JACTION_ADMIN_COMPONENT_DESC" /> | |
<action name="core.manage" title="JACTION_MANAGE" description="JACTION_MANAGE_COMPONENT_DESC" /> | |
<action name="core.create" title="JACTION_CREATE" description="JACTION_CREATE_COMPONENT_DESC" /> | |
<action name="core.delete" title="JACTION_DELETE" description="JACTION_DELETE_COMPONENT_DESC" /> | |
<action name="core.edit" title="JACTION_EDIT" description="JACTION_EDIT_COMPONENT_DESC" /> | |
<action name="core.edit.state" title="JACTION_EDITSTATE" description="JACTION_EDITSTATE_COMPONENT_DESC" /> | |
<action name="core.edit.own" title="JACTION_EDITOWN" description="JACTION_EDITOWN_COMPONENT_DESC" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @version 1.5.7 | |
* @package Joomla | |
* @subpackage Edocman | |
* @author Tuan Pham Ngoc | |
* @copyright Copyright (C) 2011 - 2013 Ossolution Team | |
* @license GNU/GPL, see LICENSE.php | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function files_clean_up() | |
{ | |
jimport('joomla.filesystem.folder'); | |
jimport('joomla.filesystem.file'); | |
$db = JFactory::getDbo(); | |
$config = EdocmanHelper::getConfig(); | |
$path = $config->documents_path; | |
$pathLength = strlen($path) ; | |
$files = JFolder::files($config->documents_path, '.', true, true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @version 1.6.4 | |
* @package Joomla | |
* @subpackage Membership Pro | |
* @author Tuan Pham Ngoc | |
* @copyright Copyright (C) 2012 - 2014 Ossolution Team | |
* @license GNU/GPL, see LICENSE.php | |
*/ | |
// Check to ensure this file is included in Joomla! |
OlderNewer