Location: PHPKode > projects > KSMS bulk sms manager > ksms-e1.2.35/my_AutomaticSelect.inc
<?PHP
// -------------------------------------------------------------------------//
// KSMS ^ Short Message System Manager										//
// -------------------------------------------------------------------------//
// Based on "DBSMS" (C) 2002 Paolo Remonato									//
// Copyright (C) 2002-2006 Paolo Remonato									//
// KSMS-PROJECT HOME  :  http://ksms.sourceforge.net/						//
// -------------------------------------------------------------------------//
//   Please,do not delete these lines	^^^									//
// -------------------------------------------------------------------------//
/*
  This program is free software; you can redistribute it and/or modify it under the terms
  of the GNU General Public License as published by the Free Software Foundation.
  The software is provided "as is" without any express or implied warranty of any kind,
  Including warranties of noninfringement, merchantability, or fitness for a particular purpose.  
*/
###		@version 	: 2006-02-21,v1.2.35	kingmo
###		@last sing_upd 	: 
###		@filename 	: my_AutomaticSelect.inc

define('IN_KSMS', true);

#	AUTOMATIC SELECTION

if (!$orgsel3E = $db->Execute("SELECT * FROM credits_manager WHERE id_orgz='$idORG'")) {
	echo "<p class='tbl_error'>Database Error: " . $db->ErrorMsg() . "</p>";
	      		break;
   				}
		$conxx = $orgsel3E->fields["connext_type"];
		$kstot = $orgsel3E->fields["smscredits_totalsum"];
		$ksrem = $orgsel3E->fields["smscredits_remain"];
		$kntot = $orgsel3E->fields["nrsms_totalsum"];
		$knrem = $orgsel3E->fields["nrsms_remain"];
		$cr_ac = $orgsel3E->fields["credit_activated"];
	if ($cr_ac == "Y" AND $remcheck == "7ikpd0kk100OOYLKWW++--778O9O9O8O7O6O5O4O3O2O1") {
		if ($conxx == "fee") { $cust_credsrem = $ksrem; }
		 else if ($conxx == "oto") { $cust_credsrem = $knrem; }
		 else $cust_credsrem = 0;
		$totcountnrs_it = number_format($totcountnrs, 0, ',', '.'); // italian format numbers!!!
		$cust_credsrem_it = number_format($cust_credsrem, 0, ',', '.'); // Formato italiano (0 decim.)
		$totcountnrs = $cust_credsrem_it;
		
			$bokk = "okCR_OptSelected";
			$smopt = "auto";
			echo "<p class='body_of_evidence'> &raquo; Numbers Automatic Selection !!! </p>"; 
			
			
			
			
			
	    } // end     if ($cr_ac == "Y" AND $remcheck....
	else { 
	echo "<p class='body_of_evidence'> &raquo;&raquo;&raquo; User Inactivated (DFM52263) </p>"; 
	include("footer.inc.php");
	break;
	  }

?>
Return current item: KSMS bulk sms manager