Jump to content

Byron

Moderators
  • Posts

    9,153
  • Joined

  • Last visited

  • Days Won

    146

Everything posted by Byron

  1. Seems there's a problem with connecting to the cPanel on Stevie. Escalating to the root administrator...
  2. Do you mean you can't connect through cPanel?
  3. Here's an example of random text on an image. http://byrondallas.heliohost.org/8_Ball.php Uses the same script above but instead of a countdown script it uses an array of answers and randomly picks one.
  4. Good job! Thanks for taking the time to share this with everybody jje.
  5. Ever wanted to annotate an image on your web site, maybe with random text or a countdown? With the Imagick Class it's really simple. Just copy and paste the code below into a php file and then add the php file inside an image tag: <?php # Define countdown, if your using a countdown $day = 7; $month = 7; $year = 2012; $days = (int)((mktime (0,0,0,$month,$day,$year) - time(void))/86400); $days = $days+1; # Your image goes here, relative path $image = new Imagick("../images/seaside.jpg"); $draw = new ImagickDraw(); /* The $x and $y attributes and the text that's displayed. The $x and $y attributes are for moving the text from the left or top by pixels after setting the gravity. */ $x = 0; # pixels from the left $y = 30; # pixels from the top $text = "$days days til Vacation!"; # The font and font attributes $draw->setFont("Times-Italic"); $draw->setFontSize(40); $draw->setFillColor("white"); $draw->setStrokeColor("white"); $draw->setStrokeWidth(0.5); $draw->setGravity(Imagick::GRAVITY_NORTH); $image->annotateImage($draw, $x, $y, 0, $text); /* Other gravity settings Imagick::GRAVITY_NORTHWEST Imagick::GRAVITY_NORTH Imagick::GRAVITY_NORTHEAST Imagick::GRAVITY_WEST Imagick::GRAVITY_CENTER Imagick::GRAVITY_EAST Imagick::GRAVITY_SOUTHWEST Imagick::GRAVITY_SOUTH Imagick::GRAVITY_SOUTHEAST */ # Make headers header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); header("Content-type: image/jpeg"); echo $image; ?> The finished image: http://byrondallas.heliohost.org/php/countdown-imagick.php Highlighted code: http://byrondallas.heliohost.org/php/countdown-imagick.phps Use an <img> tag to code it on your page: <img src="http://byrondallas.heliohost.org/php/countdown-imagick.php" width="384" height="288" border="0"> Server fonts to choose from: http://byrondallas.heliohost.org/php/tools...font-viewer.php Of if you choose to use a True Type Font, you can replace this line with the relative path to your font: $draw->setFont("fonts/my-font.ttf");
  6. There was another thread about a php login script and it brought back to mind this .htpasswd file password generator for password protected directories. It's a little easier than going through the cpanel steps to add another user. Just make sure when you paste in the new user and password that it begins on a new line in the .htpasswd file. http://byrondallas.heliohost.org/alpha1ome...pt_password.php <html> <head> <title>.htpasswd File Password Encryption</title> </head> <body> <h2>.htpasswd File Password Encryption</h2> <form method="post" action=""> Enter Username<br> <input name="user" value="<?php echo $_POST[user]; ?>" size="20"> <br><br> Enter Password<br> <input name="password" value="<?php echo $_POST[password]; ?>" size="20"> <br><br> <input type="submit" name="submit" value="Encrypt"> <br><br> <?php if ( $_POST[password] && $_POST[user] ) { $user = $_POST[user]; $password = $_POST[password]; $encryptedPassword = crypt($password); echo ".htpasswd File Code<br>\n"; echo "<input type=\"text\" size=\"50\" value=\"$user:$encryptedPassword\">"; } ?> </form> </body> </html>
  7. Your account has been manually unsuspended. If you still see the suspended page then you should try clearing your browsers cache. http://wiki.heliohost.org/wiki/Clear_your_cache -- Please spare a few minutes to take our brief survey: http://feedback.heliohost.org/ Your participation in this survey is greatly appreciated.
  8. This support request is being escalated to our root admin.
  9. Your site is still in the queue. Give it another day or two and you should be up.
  10. I didn't think about your folder. Most people don't change the default folder permissions. You shouldn't need anything greater than 755 folder or file on the heliohost servers, except on the Python egg_cache. Congradulations jje!
  11. I tried his script on my site with permissions 777 like he stated and got a 500 error. After I set permissions to 755 it was ok. Maybe he has something else wrong if he changed the permissions.
  12. Thanks jje. Exactly where did you go in WHM to do this? Also can we restrat the mail server by going to Mail Server (Exim) in the WHM?
  13. Don't create a new account on Stevie until we completely delete the johnny account.
  14. I've been trying to help him through PM's. I deleted the Johnny account and then he registered on Stevie. The ACP showed that the johhny account was deleted but it's still showing: benimeserim.org After a couple of days and his Stevie account still showing as queued I deleted it hoping that maybe the johnny account would finally get completely deleted when the corruption scriopt ran. Anyway what needs to be done is this account needs to be completely deleted: benimeserim.org
  15. Please start a new topic in Customer Service and give a little bit of a description as to what happens when you try to login.
  16. We are aware of the problem and working to correct it.
  17. You need ALL of those files for that particular application to work. You might want to just start over and upload that zip file again and then unzip it and read the readme.html file that comes with the application. If you don't like the name of the folder that it opens up, then just rename the folder and that will keep you from having to move all of the files to a new location.
  18. Seems mail is down again on Stevie. The php mail() function isn't working again.
  19. Yeah it's probably something your just missing since the enviroment is different from you home computer. There's not a whole lot I can help you with when it comes to python. I would make sure that a simple python script was working on your site though.
  20. Have you created your database yet? You could put your database inside your home directory where only you could see it. It would look something like this: $db = sqlite_open("/home/byron/load_db");
  21. The mail system seems to be down on Stevie right now. @Administrators: has anybody contacted djbob recently about the mail being down?
×
×
  • Create New...