This file contains 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 function getSubmits() | |
{ | |
$cid = JFactory::getApplication()->input->getInt('cid'); | |
$db = $this->getDbo(); | |
$query = $db->getQuery(true); | |
$query->select('a.*, i.username'); | |
$query->from('#__rootflick_submissions as a'); |
This file contains 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 | |
/* Model Code */ | |
class ComponentModelView extends JModelLegacy | |
{ | |
public function getItem() | |
{ | |
$id = JFactory::getApplication()->input->getInt('cid'); | |
$row = JTable::getInstance('chapter', 'RootflickTable'); |
This file contains 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 | |
// Check to ensure this file is included in Joomla! | |
defined('_JEXEC') or die('Restricted access'); | |
jimport('joomla.form.forrmfield'); | |
jimport('joomla.form.helper'); | |
JFormHelper::loadFieldClass('media'); | |
class JFormFieldRootflickmedia extends JFormFieldMedia { |
This file contains 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 $Id: item.php 1251 2011-10-19 17:50:13Z joomlaworks $ | |
* @package K2 | |
* @author JoomlaWorks http://www.joomlaworks.gr | |
* @copyright Copyright (c) 2006 - 2011 JoomlaWorks Ltd. All rights reserved. | |
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html | |
*/ | |
// no direct access |
This file contains 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 function filterResults($results) | |
{ | |
$app = JFactory::getApplication(); | |
$pattern = $app->input->get('filter_id'); | |
// loop through results to remove unwanted results | |
for ($i = 0; $i <= count($results->entries)+1; $i++) | |
{ | |
// loop through path way to find matches and remove if not found. | |
foreach ($results->entries[$i]->path_collection->entries as $result) |
This file contains 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
username@art-web-svr-01 images]$ sudo mv /* ../../../../home/username/public_html/images/ | |
[sudo] password for username: | |
mv: cannot move `/backup' to `../../../../home/username/public_html/images/backup': Device or resource busy | |
mv: cannot move `/boot' to `../../../../home/username/public_html/images/boot': Device or resource busy | |
mv: cannot move `/data' to `../../../../home/username/public_html/images/data': Device or resource busy | |
mv: cannot move `/dev' to `../../../../home/username/public_html/images/dev': Device or resource busy | |
mv: cannot move `/home' to a subdirectory of itself, `../../../../home/username/public_html/images/home' | |
mv: cannot move `/misc' to `../../../../home/username/public_html/images/misc': Device or resource busy | |
mv: cannot move `/net' to `../../../../home/username/public_html/images/net': Device or resource busy | |
mv: cannot move `/proc' to `../../../../home/username/public_html/images/proc': Device or resource busy |
This file contains 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 | |
session_start(); | |
// define Joomla's framework path | |
// get bootstrap | |
require dirname(dirname(dirname(__FILE__))).'/bootstrap.php'; | |
// Increase error reporting to that any errors are displayed. | |
// Note, you would not use these settings in production. |
This file contains 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
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:php="http://php.net/xsl"> | |
<xsl:template match="/entry_details"> | |
<xsl:output method="xml" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/> | |
<xsl:variable name="title"><xsl:value-of select="entry/name" /></xsl:variable> | |
<h1><xsl:value-of select="php:function('RanchBrokers::PrettyTitle', $title)" disable-output-escaping="yes"/></h1> | |
</xsl:template> | |
</xsl:stylesheet> |
This file contains 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
<xsl:variable name="identifier"><xsl:value-of select="field_identifier" /></xsl:variable> | |
<h1><xsl:value-of select="php:function('Restaurant::getRestaruantData', $identifier)" disable-output-escaping="yes"/></h1> |
This file contains 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 | |
/* | |
** recursive function which builds child / parent option list of | |
** select list options | |
*/ | |
public function getSubfoldersList($parent_id) | |
{ | |
$model = new BoxsearchModelBoxsearch(); | |
$subfolders = $model->getSubFolders($parent_id); |