uawdijnntqw1x1x1
IP : 216.73.216.219
Hostname : webm009.cluster128.gra.hosting.ovh.net
Kernel : Linux webm009.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
OS : Linux
PATH:
/
home
/
chauffn
/
vuzelia
/
2023
/
administrator
/
components
/
com_convertforms
/
ConvertForms
/
Api.php
/
/
<?php /** * @package Convert Forms * @version 3.2.11 Pro * * @author Tassos Marinos <info@tassos.gr> * @link http://www.tassos.gr * @copyright Copyright © 2020 Tassos Marinos All Rights Reserved * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later */ namespace ConvertForms; defined('_JEXEC') or die('Restricted access'); /** * This is the main Convert Forms API helper class meant to be used ONLY by 3rd party developers and advanced users. * Do not ever use this class to implement and rely any core feture. */ class Api { /** * Delete a submission from the database * * @param integer $id The submission's primary key * * @return bool True on success */ public static function removeSubmission($submission_id) { if (!$submission_id) { return; } \JTable::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_convertforms/tables'); $table = \JTable::getInstance('Conversion', 'ConvertFormsTable'); return $table->delete($submission_id); } /** * Delete all form submissions from the database * * @param integer $form_id The form's primary key * * @return bool */ public static function removeFormSubmissions($form_id) { if (!$form_id) { return; } $db = \JFactory::getDbo(); $query = $db->getQuery(true) ->delete($db->quoteName('#__convertforms_conversions')) ->where($db->quoteName('form_id') . ' = ' . $form_id); $db->setQuery($query); return $db->execute(); } /** * Return all form submissions * * @param integer $form_id The form's ID * * @return Object */ public static function getFormSubmissions($form_id) { if (!$form_id) { return; } $db = \JFactory::getDbo(); $query = $db->getQuery(true) ->select('*') ->from($db->quoteName('#__convertforms_conversions')) ->where($db->quoteName('form_id') . ' = ' . $form_id); $db->setQuery($query); $rows = $db->loadObjectList(); foreach ($rows as $key => $row) { $row->params = json_decode($row->params); } return $rows; } /** * Return the total number of form total submissions * * @param integer $form_id The form's ID * * @return integer */ public static function getFormSubmissionsTotal($form_id) { return number_format(Form::getSubmissionsTotal($form_id)); } /** * Get the visitor's device type: desktop, tablet, mobile * * @return string */ public static function getDeviceType() { return \NRFramework\WebClient::getDeviceType(); } /** * Indicate if the visitor is browsing the site via a mobile * * @return bool */ public static function isMobile() { return self::getDeviceType() == 'mobile'; } }
/home/chauffn/vuzelia/2023/administrator/components/com_convertforms/ConvertForms/Api.php