Example #1
0
<?php

/* Have you got Christ?
 * TrunkSMS GPL project www.trunksms.com.
 * 
 * @author  Daser Solomon Sunday songofsongs2k5@gmail.com,  daser@trunksms.com
 * @version 0.1
 * @License
 *
 * 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; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Library General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301,  USA
 */
include "misc_function.php";
getActivationForm();
echo "<div  class = \"back\"><a style = \"text-decoration: none;\" href = \"./\">back</a></div>";
Example #2
0
 $password = addslashes(trim($_POST['password']));
 $query = "SELECT * FROM TRUNKregistration WHERE phoneNo = '{$phoneNo}' AND password = '******' AND activated = 0";
 $result = @mysql_query($query);
 $num = 0;
 $num = @mysql_num_rows($result);
 if ($num == 1) {
     echo "<div class=\"ui-widget\">";
     echo "<div class=\"ui-state-error ui-corner-all\" style=\"padding: 0 .7em; margin-top: 20px; \">";
     echo "<p><span class=\"ui-icon ui-icon-alert\" style=\"float: left; margin-right: .3em;\"></span>";
     echo "<strong>Alert:</strong> Sorry! Your account has not been activated. <br/>Activate!!</p>";
     echo "</div></div>";
     /*
       echo "<div id = \"failure\">";
     	echo "Sorry! Your account has not been activated. <br/>Activate!";
     	echo "</div> <!-- end failure -->";*/
     getActivationForm($phoneNo, $password);
 } else {
     $sql = "SELECT * FROM TRUNKregistration WHERE phoneNo = '{$phoneNo}' AND password = '******' AND activated = 1";
     $result = @mysql_query($sql) or die("Error on Line: " . __LINE__ . mysql_error());
     $num = 0;
     $num = @mysql_num_rows($result);
     if ($num == 1) {
         while ($row = @mysql_fetch_array($result)) {
             $name = ucwords(strtolower($row['org']));
             $phone = $row['phoneNo'];
             $balance = $row['SMSunits'];
             $AccountNo = $row['AccountNo'];
             $countryCode = $row['countryCode'];
             $email = $row['countryCode'];
         }
         $_SESSION['name'] = $name;