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/brest/components/com_djclassifieds/views/payment/tmpl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/brest/components/com_djclassifieds/views/payment/tmpl/default.php
<?php
/**
 * @package DJ-Classifieds
 * @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@dj-extensions.com
 */

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

JHtml::_('behavior.formvalidator');

$app = JFactory::getApplication();
$user = JFactory::getUser();
$par = $this->par;

?>

<div id="dj-classifieds" class="djcftheme-<?php echo $par->get('theme','default');?> payment-advert">

	<?php echo DJClassifiedsTheme::renderModule('djcf-payment-top'); ?>
	
		<?php
			if($this->item->new == 2){
				echo '<div class="payment_back_to_edit payment_back_to_renew">';
					echo '<a class="back_to_edit back_to_renew" href="'.DJClassifiedsSEO::getViewUri('renewitem').'&id='.$this->item->id.'">'.JText::_('COM_DJCLASSIFIEDS_BACK_TO_RENEW').'</a>';
				echo '</div>';
			}elseif($this->back_to_edit_link){
				echo '<div class="payment_back_to_edit">';
					echo '<a class="back_to_edit" href="'.$this->back_to_edit_link.'">'.JText::_('COM_DJCLASSIFIEDS_BACK_TO_EDITION').'</a>';
				echo '</div>';
			}
		?>
	<table cellpadding="0" cellspacing="0" width="98%" border="0" class="paymentdetails first">
		<tr>
			<td class="td_title">
				<h2><?php echo JText::_('COM_DJCLASSIFIEDS_PAYMENT_DETAILS');?></h2>
			</td>
		</tr>
		<tr>
			<td class="td_pdetails">
			<form class="form-validate" name="paymentForm" id="paymentForm">
				<div class="pd_row"><span class="item_name"><?php echo $this->item->name; ?></span></div>
				<?php 
					$p_count = 0;

					if(strstr($this->item->pay_type, 'cat')){
						echo '<div class="pd_row"><span>'.JText::_('COM_DJCLASSIFIEDS_CATEGORY').' ('.JText::_($this->categories[$this->item->cat_id]->name).')'.'</span><span class="price">';
							echo DJClassifiedsPayment::getPriceText($this->item_price_det['price_det']['cat'], $this->item_price_det['points_det']['cat'], $par);
						echo '</span></div>';
						$p_count++;
					}	
					
					if(strstr($this->item->pay_type, 'mc')){
						$pay_elems = explode(',', $this->item->pay_type);
						foreach($pay_elems as $pay_el){
							if(strstr($pay_el, 'mc')){
								$mc_id = str_ireplace('mc', '', $pay_el);
								$mcat = $this->categories[$mc_id];
								echo '<div class="pd_row"><span>'.JText::_('COM_DJCLASSIFIEDS_CATEGORY').' ('.JText::_($mcat->name).')'.'</span><span class="price">';
									echo DJClassifiedsPayment::getPriceText($this->item_price_det['price_det'][$pay_el], $this->item_price_det['points_det'][$pay_el], $par);
								echo '</span></div>';
								$p_count++;
							}
						}
					}
					
					if(strstr($this->item->pay_type, 'type,')){
						echo '<div class="pd_row"><span>'.JText::_('COM_DJCLASSIFIEDS_TYPE').' "'.$this->item->t_name.'"</span><span class="price">';
							echo DJClassifiedsPayment::getPriceText($this->item_price_det['price_det']['type'], $this->item_price_det['points_det']['type'], $par);
						echo '</span></div>';
						$p_count++;
					}						

					if(strstr($this->item->pay_type, 'duration')){
						echo '<div class="pd_row"><span>'.JText::_('COM_DJCLASSIFIEDS_DURATION').': ';
						if($this->item->exp_days==0){
							echo JText::_('COM_DJCLASSIFIEDS_UNLIMITED');
						}else if($this->item->exp_days==1){
							echo $this->item->exp_days.' '.JText::_('COM_DJCLASSIFIEDS_DAY');
						}else{
							echo $this->item->exp_days.' '.JText::_('COM_DJCLASSIFIEDS_DAYS');
						}
						if(strstr($this->item->pay_type, 'duration_renew')){
							echo '</span><span class="price">';
								echo DJClassifiedsPayment::getPriceText($this->item_price_det['price_det']['duration_renew'], $this->item_price_det['points_det']['duration_renew'], $par);
							echo '</span></div>';
						}else{
							echo '</span><span class="price">';
								echo DJClassifiedsPayment::getPriceText($this->item_price_det['price_det']['duration'], $this->item_price_det['points_det']['duration'], $par);
							echo '</span></div>';
						}
						$p_count++;			
					}

					foreach($this->promotions as $prom){
						$pay_type_a = explode(',', $this->item->pay_type);
						foreach($pay_type_a as $pay_type_e){
							if(strstr($pay_type_e, $prom->name)){
								$pay_type_ep = explode('_', $pay_type_e);
								$prom_price = 0;
								$prom_points = 0;
								if(!empty($this->item_price_det['price_det'][$pay_type_e])){
									$prom_price = $this->item_price_det['price_det'][$pay_type_e];
								}
								if(!empty($this->item_price_det['points_det'][$pay_type_e])){
									$prom_points = $this->item_price_det['points_det'][$pay_type_e];
								}

								echo '<div class="pd_row"><span>';
									echo JText::_($prom->label).' - '.$pay_type_ep[3].' '.($pay_type_ep[3] == '1' ? JText::_('COM_DJCLASSIFIEDS_DAY') : JText::_('COM_DJCLASSIFIEDS_DAYS'));
								echo '</span>';
								echo '<span class="price">';
									echo DJClassifiedsPayment::getPriceText($prom_price, $prom_points, $par);
								echo '</span></div>';
								$p_count++;
							}
						}
					}
					
					if(strstr($this->item->pay_type, 'extra_img')){
						echo '<div class="pd_row"><span>'.JText::_('COM_DJCLASSIFIEDS_ADDITIONAL_IMAGES').': '.$this->item->extra_images_to_pay.' ';
						echo '</span><span class="price">';
							echo DJClassifiedsPayment::getPriceText($this->item_price_det['price_det'][(strstr($this->item->pay_type, 'extra_img_renew') ? 'extra_img_renew' : 'extra_img')], $this->item_price_det['points_det'][(strstr($this->item->pay_type, 'extra_img_renew') ? 'extra_img_renew' : 'extra_img')], $par);
						echo '</span></div>';
						$p_count++;
					}
					
					if(strstr($this->item->pay_type, 'extra_chars')){
						echo '<div class="pd_row"><span>'.JText::_('COM_DJCLASSIFIEDS_ADDITIONAL_CHARS').': '.$this->item->extra_chars_to_pay.' ';
						echo '</span><span class="price">';
							echo DJClassifiedsPayment::getPriceText($this->item_price_det['price_det'][(strstr($this->item->pay_type, 'extra_chars_renew') ? 'extra_chars_renew' : 'extra_chars')], $this->item_price_det['points_det'][(strstr($this->item->pay_type, 'extra_chars_renew') ? 'extra_chars_renew' : 'extra_chars')], $par);
						echo '</span></div>';
						$p_count++;
					}

					foreach($this->plugin_payments as $extra_p){
						echo $extra_p;
					}
					
					if($p_count>1 || $par->get('vat_value','-1')>-1 || $par->get('points', 0)!=2){
						if($par->get('vat_value','-1')>-1 && $par->get('points', 0)!=2){
							echo '<div class="pd_row_net"><span>'.JText::_('COM_DJCLASSIFIEDS_NET_COST').'</span>';
								echo '<span class="price">'.DJClassifiedsTheme::priceFormat($this->price_net,$par->get('unit_price',''));
								echo '</span>';							
							echo '</div>';
							echo '<div class="pd_row_tax"><span>'.JText::_('COM_DJCLASSIFIEDS_TAX').' ('.$par->get('vat_value','-1').'%)</span>';
								echo '<span class="price">'.DJClassifiedsTheme::priceFormat($this->price_total-$this->price_net,$par->get('unit_price',''));
								echo '</span>';
							echo '</div>';
						}
						echo '<div class="pd_row_total"><span>'.JText::_('COM_DJCLASSIFIEDS_TOTAL').'</span>';
						echo '<span class="price">';
							echo DJClassifiedsPayment::getPriceText($this->price_total, $this->points_total, $par);
						echo '</span></div>';
					} ?>

					<?php echo $this->loadTemplate('terms'); ?>
			</form>
			</td>
		</tr>			
	</table>

	<?php echo DJClassifiedsTheme::renderModule('djcf-payment-middle'); ?>

	<?php
		foreach($this->plugin_sections as $extra_section){
			echo $extra_section;
		}

		$app->triggerEvent('onBeforeShowPaymentsList',array(&$par));
	?>
	<table cellpadding="0" cellspacing="0" width="98%" border="0" class="paymentdetails">
		<tr>
			<td class="td_title">
				<h2><?php echo JText::_("COM_DJCLASSIFIEDS_PAYMENT_METHODS"); ?></h2>
			</td>
		</tr>
		<tr>
			<td class="table_payment">
				<table cellpadding="0" cellspacing="0" width="100%" border="0">
					<?php
						if($par->get('points',0) && $this->points_total){ ?>
							<tr>
								<td class="payment_td">
									<?php echo DJClassifiedsTheme::renderLayout('paymentmethodpoints', array('item_id' => $this->item->id, 'type' => '', 'user_points' => $this->user_points, 'points_total' => $this->points_total, 'par' => $par)); ?>
								</td>
							</tr>
						<?php }	?>
						<?php foreach($this->PaymentMethodDetails AS $pminfo){ ?>
							<tr>
								<td class="payment_td">
									<?php echo $pminfo; ?>
								</td>
							</tr>
						<?php } ?>
						<?php if(!($par->get('points',0) && $this->points_total) && !$this->PaymentMethodDetails){ ?>
							<tr>
								<td class="no_results">
									<?php echo JText::_('COM_DJCLASSIFIEDS_PAYMENT_METHODS_NO_RESULTS'); ?>
								</td>
							</tr>
						<?php } ?>
				</table>
			</td>
		</tr>
	</table>

	<?php echo DJClassifiedsTheme::renderModule('djcf-payment-bottom'); ?>

</div>

Anon7 - 2022
AnonSec Team