westman

Members
  • Content count

    478
  • Joined

  • Last visited

  • Days Won

    1

westman last won the day on March 14 2013

westman had the most liked content!

Community Reputation

10 Good

About westman

  • Rank
    Member
  1. I understand that. However, I am not talking about pgp for messages or email. I am talking about the pgp privet key you receive with your random .onion domain name when you open the Tor browser with the intent of hosting on the dark web. The pgp privet key and the .onion url are linked (meaning the privet key and url are bound together/created together). From my pgp privet key and my .onion url I am trying to find my pgp public key. How do I do that?
  2. Yer, Years of support from this forum I have got. Thank you.
  3. I notice that some sites on the clear web but most on the dark web show their PGP public key. ‚ÄčI have a pgp privet key that was auto generated along with my .onion url when I opened the tor browser. I also took a look at https://github.com/singpolyma/openpgp-php and my question is... How do I display a PGP public key on a website that relates to my site url using php?
  4. most impotent question has been asked "What are you trying to do?" are you posting info to a DB or are you link building? from your code it is uncertain.
  5. thank you it works. you got me! it is not my code but I have used it before and it has worked outside a loop. would love to know how each line of the code works. have you got the time?
  6. try... $mailtext .= '<b>' . $name . '</b>' . $trenner . $einzelwert . $trenner2;or$mailtext .= '<strong>' . $name . '</strong>' . $trenner . $einzelwert . $trenner2; as mentioned above.
  7. He what'd to know how to send an email. I helped with code. you are welcome
  8. $to = "me@gmail.com"; $from = "admi@mysite.com";$subject = "error";$message = '<html> <body bgcolor="#FFFFFF"> <br /><br /> Error: ' . $error_log . ' </body> </html>'; // end of message $headers = "From: $fromrn"; $headers .= "Content-type: text/htmlrn"; // Finally send the activation email to the member mail($to, $subject, $message, $headers); NOTE to the mods and admin. It is ok to help with code from time to time it will not kill you to help in this way.
  9. I do not know what part of my code defines the function so here is what I did... $time04 = date("Y-m-d",time() - (60*60*24*7*26)); // 6.5 mouths (26 weeks)$time04 = mysql_real_escape_string($time04);function delete_directory($directory, $empty=false){ if(substr($directory,-1) == DIRECTORY_SEPARATOR){ $directory = substr($directory,0,-1); } if(!is_dir($directory) || !is_readable($directory)){ return false; } else{ $handle = opendir($directory); while (false !== ($item = readdir($handle))){ if($item != '.' && $item != '..'){ $path = $directory.DIRECTORY_SEPARATOR.$item; if(is_dir($path)){ delete_directory($path); } else{ unlink($path); } } } closedir($handle); if($empty == false){ if(!rmdir($directory)){ return false; } } return true; }} $sql02_info_get = mysql_query("SELECT * FROM ads WHERE live='0' AND addate < TIMESTAMP('$time04')");$sql02_info_get_count = mysql_num_rows($sql02_info_get);if ($sql02_info_get_count > 0){while($row = mysql_fetch_array($sql02_info_get)){$remove_adid = $row["adid"];$directory = "pics/$remove_adid";//if(!is_dir($directory)){//echo "good";//exit(); //}else{//echo "bad";//exit(); //}delete_directory($directory);$remove_adid = mysql_real_escape_string($remove_adid);$sql02 = mysql_query("DELETE FROM ads WHERE adid='$remove_adid'"); } // end loop} will this work? if not please give code examples.
  10. how am I going to remove the code in the block that defines the function and still have a function than functions? I do not understand. please be more clear by telling me all the key words I need to remove or paste some code to see.
  11. Do you mean this line? function delete_directory($directory, $empty=false) // line 236{ If not please copy and past the line so it is clear.
  12. do you mean the last line? delete_directory($directory);
  13. omg you are right. the loop is messing up the second time. I can see it works 1 time since i have one less entry in my DB. now then.... how do i make it work on a loop?
  14. Hi all, I am trying to remove a folder if it exists and files within it if they exists. I keep getting this error. Fatal error: Cannot redeclare delete_directory() (previously declared in /home/content/31/1234321/html/ads/index.php:236) in /home/content/1234321/html/ads/index.php on line 236 $time04 = date("Y-m-d",time() - (60*60*24*7*26)); // 6.5 mouths (26 weeks)$time04 = mysql_real_escape_string($time04);$sql02_info_get = mysql_query("SELECT * FROM ads WHERE live='0' AND addate < TIMESTAMP('$time04')");$sql02_info_get_count = mysql_num_rows($sql02_info_get);if ($sql02_info_get_count > 0){while($row = mysql_fetch_array($sql02_info_get)){$remove_adid = $row["adid"];$directory = "pics/$remove_adid";//if(!is_dir($directory)){//echo "good";//exit(); //}else{//echo "bad";//exit(); //}function delete_directory($directory, $empty=false) // line 236{ if(substr($directory,-1) == DIRECTORY_SEPARATOR){ $directory = substr($directory,0,-1); } if(!is_dir($directory) || !is_readable($directory)){ return false; } else{ $handle = opendir($directory); while (false !== ($item = readdir($handle))){ if($item != '.' && $item != '..'){ $path = $directory.DIRECTORY_SEPARATOR.$item; if(is_dir($path)){ delete_directory($path); } else{ unlink($path); } } } closedir($handle); if($empty == false){ if(!rmdir($directory)){ return false; } } return true; }} delete_directory($directory);$remove_adid = mysql_real_escape_string($remove_adid);$sql02 = mysql_query("DELETE FROM ads WHERE adid='$remove_adid'"); } // end loop} any help?