⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 payment.php

📁 日程 BosDates v4.5 Copyright ?2004-2005 BosDev
💻 PHP
字号:
<?php//////////////////////////// COPYRIGHT NOTICE ////////////////////////////////////// This script is part of BosClassifieds, a software application by BosDev, Inc //// Use of any kind of part or all of this script or modification of this        //// script requires a license from BosDev, Inc. Use or modification of           //// this script without a license constitutes Software Piracy and will           //// result in legal action from BosDev, Inc.  All rights reserved.               ////            http://www.bosdev.com      sales@bosdev.com                       ////                                                                              ////           BosClassifieds Copyright 2004, BosDev, Inc.                        //////////////////////////////////////////////////////////////////////////////////////Connect to database & get functions loadedinclude("connect.php");include("functions.php");//Set globalsglobal $SystemOptions,$cat_id;$result = query("SELECT * FROM {$class_prefix}system",$class_link);$SystemOptions = mysql_fetch_array($result);//Set languageinclude("{$insPath}languages/{$SystemOptions['language']}.php");//Include integration fileinclude("{$insPath}integration/{$SystemOptions['integration']}.php");//Include payment fileif($SystemOptions['payment_gateway'] != "") {	include("{$insPath}payments/{$SystemOptions['payment_gateway']}.php");	}//Get the useridif(authenticateUser()) {	$userID = getUserID();	$userInfo = getUserInfo();	}//Check the status of the payment$status = getPaymentResult($_POST);switch($status[1]) {	case 1:		//Lets get the ids for verification		$paidArray = unserialize(urldecode($ad));		//Ads have been paid for		while(list(,$adID) = each($paidArray)) {			$adID = protect($adID);			if($adID != "") {				//Update the ad				$result = query("UPDATE {$class_prefix}ads SET ad_status=1,ad_fee='0.00' WHERE ad_id=$adID",$class_link);				alertAdmin("paid",$adID);				}			}		updateCounts();		$displayData =<<<ENDDATA		<table width="100%" border="0" cellspacing="1" cellpadding="3">		 <tr>		  <td>		   {$Languages['payment']['paymentmade']}<br>		  </td>		 </tr>	        </table>ENDDATA;		break;	case 0:		//Do nothing with the listing		$displayData =<<<ENDDATA		<table width="100%" border="0" cellspacing="1" cellpadding="3">		 <tr>		  <td>		   {$Languages['payment']['paymentnotmade']}<br>		   <br>		   {$status[2]}<br>		  </td>		 </tr>		</table>ENDDATA;		break;	}$from = "account";$title_extra = "{$Languages['account']['fromtitle']} | ";include("header.php");if(authenticateUser() && $action != "logout") {	echo<<<ENDPRINT	<br>	<table width="{$SystemOptions['page_width']}" border="0" cellspacing="0" cellpadding="0">	 <tr>	  <td>	   <div id="generalBox">	   <table width="100%" border="0" cellspacing="1" cellpadding="3">	    <tr>	     <td class="headtd" width="150">{$Languages['account']['menuactions']}</td>	     <td class="headtd">$displayTitle</td>	    </tr>	    <tr>	     <td width="150" valign="top">	      <a href="account.php">{$Languages['account']['menuads']}</a><br>	      <a href="account.php?action=add">{$Languages['account']['menupost']}</a><br>	      <a href="account.php?action=logout">{$Languages['account']['menulogout']}</a><br>	     </td>	     <td valign="top">	      $displayData	     </td>	    </tr>	   </table>	   </div>	  </td>	 </tr>	</table>ENDPRINT;	}	else {		echo<<<ENDPRINT		<br>		<table width="{$SystemOptions['page_width']}" border="0" cellspacing="0" cellpadding="0">		 <tr>		  <td>		   $displayData		  </td>		 </tr>		</table>ENDPRINT;		}include("footer.php");?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -