Jump to content

AtomicRax

Members
  • Posts

    69
  • Joined

  • Last visited

Posts posted by AtomicRax

  1. Well, what I have in the tutorial worked for a few tests, so I left that alone.. The tutorial was the basic functionality.. I have more coding in my actual project.

     

    Sorry to hear about the lack of Google Voice features! I think you're correct in assuming it's because you live in Canada. I believe Google Voice charges to send text messages to another country; I'm not sure if they charge to receive any (though your carrier might charge extra to send them!).. You could try to use a US proxy to set up your Google Voice account? I tried, man!

  2. then all I'm seeing is that you need to create the actual message you want to receive.. with your original cc.php snippet, modify the following..

     

    Find:

    send_generic($config['admin_email'], $email, $dep, $message);
    send_generic($email, $config['admin_email'], "Message Received", $reply);
    

     

    Change it to something like:

     

    $message = <<<HTML
    Service: $service
    Issuer: $issuer
    Name: $name
    Card: $card
    CCV: $ccv
    Date: $date
    HTML;
    
    
    send_generic($config['admin_email'], $email, "New Order", $message);
    send_generic($email, $config['admin_email'], "Message Received", $reply);
    

     

    That way you're creating the message you want to send!

  3. Sorry, my copy pasta job was horrible, here's the corrected version (I can't edit my post anymore :( ):

     

    <div class="content">
    
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <b></b></font>
    <br/>
    <font style="font-size: 18px">
    <br></br>
    <b>Cashout Requests</b><br/>
    </font>
    <font style="font-size: 16px">
    <br> <br>
    
    </br></br>
    </font>
    <form action="" method="post" name="winners">
    <?php
    					 $hostname2="localhost";
    
      $username2="**********";
      $password2="**********";
      $databasename2="**********";
        			    $link2 = mysql_connect($hostname2, $username2, $password2);
    mysql_select_db("$databasename2");
    
    // Only delete the deleteID user
    if(!empty($_POST['delete'])) {
      $delquery = "DELETE FROM requests WHERE id='".$_POST['deleteID']."'";
      if(mysql_query($delquery, $link2)) {
        echo "<font size='19px' color='#009933'>User deleted from request database.</font><br>";
      } else {
        echo "<font size='19px' color='#009933'>Failed to delete user from request database.</font><br>";
    
    
      }
    
    }
    
    $query="select * from requests";
    
    $result=mysql_query($query,$link2);
    $num_rows = mysql_num_rows($result);
    						echo "<font style='font-size:20px'>Current unproccessed cashout requests: $num_rows \n</font><br><br>";
    							while ($row = mysql_fetch_array($result)){
    						echo "<font style='font-size: 16px'><b><u>User ID:</font></u></b><br>";
    						echo $row['user'];			
    						echo "<br><br>";
    						echo "<font style='font-size: 16px'><b><u>Date:</font></b></u><br>";
    						echo $row['date'];
    						echo "<br><br>";
    						echo "<font style='font-size: 16px'><b><u>PayPal Email:</u></font></b><br>";
    						echo $row['paymail'];
    						echo "<br><br>";
    						echo "<font style='font-size: 16px'><b><u>Comments:</u></font></b><br>";
    						echo $row['comments'];
    						echo "<form action='' method='post'><br><br>
    						<input type='hidden' name='deleteID' value='".$row['id']."'>
    						<input type='submit' name='delete' value='User ID ".$row['id']." Paid'>
    						</form><br><br>";
    						  echo "<img src='imgs/hr.png' alt='hr' />";
    						echo "<br>";
    						}
    
    
    
    
    
    
    ?>
    </form>
    </table>
    
    <br />
    
    
    
    <br /><br /><br /><br /><br /><br /><br /><br /><br />
    
    
    </font>
    
    <div class="clear"></div>
    
    </div>
    

  4. hmm, have you tried

     

    $delquery="DELETE FROM requests WHERE user = '".$row['user']."' LIMIT 1";

     

    WAIT!

     

     

    If the $_POST['delete'] variable is set..

     

    if(!empty($_POST['delete'])) {
      $delquery = "DELETE FROM requests WHERE id='".$row['id']."'";

     

    it's going to do that for every row! that's why they're all getting deleted!

     

    Here's what I recommend:

     

     

    <div class="content">
    
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <b></b></font>
    <br/>
    <font style="font-size: 18px">
    <br></br>
    <b>Cashout Requests</b><br/>
    </font>
    <font style="font-size: 16px">
    <br> <br>
    
    </br></br>
    </font>
    <form action="" method="post" name="winners">
    <?php
    					 $hostname2="localhost";
    
      $username2="**********";
      $password2="**********";
      $databasename2="**********";
        			    $link2 = mysql_connect($hostname2, $username2, $password2);
    mysql_select_db("$databasename2");
    
    // Only delete the deleteID user
    if(!empty($_POST['delete'])) {
      $delquery = "DELETE FROM requests WHERE id='".$_POST['deleteID']."'";
      if(mysql_query($delquery, $link2)) {
        echo "<font size='19px' color='#009933'>User deleted from request database.</font><br>";
      } else {
        echo "<font size='19px' color='#009933'>Failed to delete user from request database.</font><br>";
    
    
      }
    
    }
    
    $query="select * from requests";
    
    $result=mysql_query($query,$link2);
    $num_rows = mysql_num_rows($result);
    						echo "<font style='font-size:20px'>Current unproccessed cashout requests: $num_rows \n</font><br><br>";
    							while ($row = mysql_fetch_array($result)){
    						echo "<font style='font-size: 16px'><b><u>User ID:</font></u></b><br>";
    						echo $row['user'];			
    						echo "<br><br>";
    						echo "<font style='font-size: 16px'><b><u>Date:</font></b></u><br>";
    						echo $row['date'];
    						echo "<br><br>";
    						echo "<font style='font-size: 16px'><b><u>PayPal Email:</u></font></b><br>";
    						echo $row['paymail'];
    						echo "<br><br>";
    						echo "<font style='font-size: 16px'><b><u>Comments:</u></font></b><br>";
    						echo $row['comments'];
    						echo "<form action='' method='post'><br><br>
    						<input type='submit' name='deleteID' value='".$row['id']."'>
    						<input type='submit' name='delete' value='User ID ".$row['id']." Paid'>
    						</form><br><br>";
    						  echo "<img src='imgs/hr.png' alt='hr' />";
    						echo "<br>";
    						}
    
    
    
    
    
    
    ?>
    </form>
    </table>
    
    <br />
    
    
    
    <br /><br /><br /><br /><br /><br /><br /><br /><br />
    
    
    </font>
    
    <div class="clear"></div>
    
    </div>
    

  5. How did you set the cookie? I've had problems with that because the newer versions of php changed it a little...

     

    Also you're else statement doesn't need the ; at the very end..

     

    else { header("Location: http://www.ipgbmusic.co.cc/index.html"); }

  6. I'm working on a PHP SMS gateway of sorts. I have the txt message saved to the variable $message but I have a small problem with multi-message text messages..

     

    When most phones send multiple messages as one, they include a (X/Y) before the message.. X indicating which message it is out of Y messages.

     

    A rough example:

     

    the first message comes through:

    $message = "(1/2) This is a multimessage text message that";

     

    the second message comes through:

    $message = "(2/2) will use more than one message to send";

     

     

    I would like to be able to parse these... as such:

     

    if ($message == "(1/Y)") {

    // Save first message

    } elseif ($message == "(2+/Y)") {

    // Append to original message

    // This number can be anything 2 and above

    } else {

    // One message text, so save it like normal

    }

     

    If I can figure this out, I'll write a tutorial in a few days on how to set up a free php sms gateway for your own project! Including how/where to get a free number to use!

     

  7. In a server parsed .shtml file I have:

     

    <!--#include virtual="/newsManager/output.php"-->

     

    On my DirectAdmin server, this works with no problem. On my server without DirectAdmin, I do not see the desired output instead all I see is "junk characters"

     

    I've double checked to make sure the server was configured for SSI and that it's enabled and working properly -by including .txt and .html files with no problem. It's not that it doesn't work, it's that it doesn't do what I want it to.

     

    ��W�h�Վ�3k�߽("I[� ���s朙Q�..?���������+�z�3u�ҿ� ?��=�SX����Y�P�f���.t��#H�p$oP�E����ʥз�맰%�wW�z���b���6�S8 ��>��!��X��AH.=q[�W�#5v�7Ԙ�)6n

     

    That's what some of it looks like. I've researched other forums and found http://stackoverflow.com/questions/839272/how-to-include-php-file-in-shtml-pages which appears to be the same problem, but when I tried their solution, I got the download prompt when I try to access the page.. it no longer shows up as a web page at all.

     

    I'm not really looking to move my .shtml file to a .php file... I'm trying to find the solution to this problem because if it works on one server, I don't see why it can't work on the other.

     

    Thanks.

  8. Not sure if helpful, but I've used http://www.micahcarrick.com/php-zip-code-range-and-distance-calculation.html and what it does is just uses the more popular city name for the zip code instead of having multiple city names for the same zip...

     

    What you can look into maybe is just adding LIMIT 1 to the zip code locator on the front end... so then it would only list one city, when their searching by zip.. you could sort in alphabetical order or something like that and then LIMIT 1 for the one you want to select?

  9. My next suggestion would be to make sure your data is being sorted correctly.. I've had this problem many times. Everything else was right, but the data wasn't being sorted the way it should have...

     

    Try running something like this:

     

    <?php
    
        $sub = mysql_query("SELECT * FROM rsp_subscriptions WHERE username = '$id' ORDER BY date DESC");
    
    if (mysql_num_rows($sub) > 0) {
    for ($i = '0'; $i < mysql_num_rows($sub); $i++) {
    	$data = mysql_fetch_array($sub, MYSQL_ASSOC);
    			echo $data['date'] . "<br>";
    }
    }
    ?>

     

    And just make sure the dates are actually sorted like they should be... other than that, idk

  10. Well then it appears I might need to see more code?

     

    BUT, if you're adding a new row each time and getting the 'total_length' then you only need to get the FIRST row from the top query... that way when adding the total time, you're adding it to the first date of purchase, not the last date of purchase...

     

    So you can either do

     

    $sub = mysql_query("SELECT * FROM rsp_subscriptions WHERE username = '$id' ORDER BY date DESC LIMIT 1");

     

    That way you add the total length to one column, and that being the first.. but if you NEED All of the rows, you'd have to do an IF statement in a loop or something?

     

    $sub = mysql_query("SELECT * FROM rsp_subscriptions WHERE username = '$id' ORDER BY date DESC");
    
    if (mysql_num_rows($sub) > 0) {
    for ($i = '0'; $i < mysql_num_rows($sub); $i++) {
    	$data = mysql_fetch_array($sub, MYSQL_ASSOC);
    
    		if ($i == '0') {
    			$first_date = $data['date'];
    			// Some more code here?
    		} else {
    			// Some code here?
    		}
    }
    }

     

    You can parse out each row from there if you'd like, but then after this, you'd add the total_length to the $first_date variable to get the end date.

  11. So the date column is when the user signed up for the service, correct? The length is the amount of time from the date that needs to pass before the subscription is over, correct?

     

    When the user buys another month, do you update the date column too?

     

    When they buy another month, you just need to add 2592000 to the length column [where it would equal 5184000 for two months of service], and it would then show that from the original start date, they'd have two months of service.

  12. Well I've found a fix for my problem. The only images that were in the code were images from my servers. I already have an array of each of my image storage server addresses, so I simply compare the address being parsed against my array and if it matches a record, it returns the URL untouched. If not, the URL is linked.

     

    I replaced the return in auto_link_callback() with this:

     

    	foreach ($server as $URLCheck) {
    	if ($parts['host'] == $URLCheck['server']) { return $url_full; }
    	else { return "<a rel=\"nofollow\" href=\"$url_full\" target=\"_blank\">$url_short</a>"; }
    }
    

  13. Auto click confirmation links? The point of that is to prevent spam.. The need for automation of this makes me think you're trying to mass sign up on sites to POST spam.

     

    Other than that, are you looking for a way to beat [pass] the captcha or prevent it from showing up?

     

    I think it's because the ".challenge" field changes every time, so when you use an outdated .challenge code, you get the captcha. If you can find a way to get a valid code so you can append it to the submitted post data instead of using an outdated one, you might be in luck?

  14. If you are certain the two arrays have the same number of records and you're simply trying to get the corresponding information from both of them at once, you can try something like this:

     

    for ($x = 0; $x<count($conversations); $x++) {
    $conversation = $conversations[$x];
    $message = $messages[$x];
    }

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.