News:

Click here for Toll-Free Service for your business starting at $2.00 per month

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - sixthcrusifix

#181
Support Requests / Re: MySQL DATABASE IS GONE! DAMN IT!
December 04, 2005, 07:18:42 AM
Quote from: admin on December 04, 2005, 02:26:41 AM
Your "DATA" database DOES exist within the MySQL server.

It is just not displayed on the "View Databases" page but can be listed via phpMyAdmin as well as the old database manage page.  (Using the Add/Drop link and selecting "View")

I have manually added this database to the list.

You CAN backup any database on the system using phpMyAdmin at http://system.freepgs.com/pma/
The links in the Options panel will simply drive you to the correct page in phpMyAdmin.

Thank you,
FreePgs.com Admin


aaah thank you I have backed it up. I dunno why it did it, the manager used to show it.
#182
I have one page that is used to str_replace stuff with another page. Unfortunately it uses some variables that are defined on the page that includes it(Actually in a page included by the page that includes it). But since the variables are not defined on this page I get undefined variable errors.

But everything works just fine. . . so I really just don't want errors for this page only.
#183
Support Requests / Re: Need help
December 03, 2005, 10:44:41 AM
Quote from: btring on December 03, 2005, 09:26:43 AM
Just signed up for the silver plan. I have a domain name (www.ruijters.org) So what now? Do I have to change the settings at my domain registrar to freepgs.com/btring or is there more to it?

thanks for any help

Pete

Well it's probably easiest just to change your nameservers and point thme to freepgs. If you have a manager where you bought your domain name, login and look for something regarding your nameservers. you should see some text input boxes and they might say some default nameservers.
in the first 3 boxes (in order) type in these values in each box:

NS1.LVCS.NET
NS2.LVCS.NET
NS01.BACKUPDNS.COM

And make sure you go here: http://system.freepgs.com/options.php?sec=doms


And add your domain name. In about 24 hours or less the admin will probably have added your domain name and your domain name should be able to access you freepgs.com account. The link I gave you gives better instructions.



#184
This shoutbox DID work before I edited it and now I don't know what I did. It had to be changed though it was really stupid and used like 1000 <? ?> tags instad of putting it in one. It has 2 big errors:

1. I get the following error message in teh shoutbox:


Notice: Undefined variable: message in /fpgs/fpgshttpd/sixthcrusifix/shoutbox.php on line 49


2. Instead of the the name showing up I get the text "name=". I dunno why either.


Here is the actuall code (you can see the shoutbox HERE



<?php include("shoutbbcode.php");

include("defaultcss.php");

?>


<body bgcolor="009800">

<table align="left" cellpadding="0" cellspacing="0" background="http://crystalchasm.net/Content.gif" bordercolor="#FFFFFF" >

<tr>

<td>

<img src="http://crystalchasm.net/CategoryS.gif">

</td>

</tr>
<tr><td>
<div align="center">
<b>The Final Destiny</b></div>
</tr></td>
<tr>

<td><div style="width: 669; height:210;
overflow: auto; font-family: Verdana,
Tahoma, Helvetica, sans-serif; font-size:
11px; color: #aa00aa; scrollbar-arrow-color:#FFFFFF;
scrollbar-track-color:#009800; scrollbar-face-color:#009800;
scrollbar-highlight-color:#00aa00; scrollbar-3dlight-color:#00ff00;
scrollbar-darkshadow-color:#003300; scrollbar-shadow-color:#005500;">
<div align="center">
<?
//the host, name, and password for your mysql
$conn = @mysql_connect("localhost","sixthcrusifix","•••••••");

//select the database
$DB = @mysql_select_db("DATA");


if(isset($submit)) 

{
   //use the PHP date function for the time
   $time=date("h:ia d/j/y");
   $SQL = "INSERT INTO shoutbox1 (id,name,message,time)
      VALUES ('NULL','$name', '$message','$time')";

   // inserting it into the shoutbox table which we made in the mysql statements before
   $result=MYSQL_QUERY($SQL,$conn)  or die(mysql_error()) ;

}

?>
<?
//returning the last 5 messages
$result = mysql_query("select * from shoutbox1 order by id desc limit 10") or die(mysql_error()) ;

//the while loop
while($r=mysql_fetch_array($result))
{
   //getting each variable from the table
   $time=$r["time"];
   $id=$r["id"];
   $message=$r["message"];
   $name=$r["name"];

include("shoutbbcode.php");
echo(" $b $name $b_ $br $message3 $br$br ");
}


?>



</div>
</tr>
</td>

<tr>

<td bgcolor="#009800">

<img src="http://crystalchasm.net/Category_bottum.gif">

</td>

</tr>

</td>

</tr>

</table>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<div align="center">

<form action="<? echo($PHP_SELF) ?>" method="post">

<INPUT TYPE='TEXT' value='name' NAME='name' SIZE=30 maxlength='100'>

<INPUT TYPE='TEXT' value='message' NAME='message' SIZE=30 maxlength='69'>

<input type="submit" NAME="submit" value="submit">

</form></div>





here is the source of shoutbbcode.php if you need it:



<?php
  if(isset($message) )
{
#Section 1, Bold, Underline and Italic

  $bb_code_1 = array("[b]","[u]","[i]","[bui]","[ui]","[iu]","[bi]","[ib]","[iub]","[ubi]","[uib]","[biu]");
$bb_output_1 =array("<b>","<u>","<i>","<b><u><i>","<u><i>","<i><u>","<b><i>","<i><b>","<i><u><b>","<u><b><i>","<u><i><b>","<b><i><u>");
$message2 = str_replace($bb_code_1,$bb_output_1,$message);

  $bb_endcode_1 = array("[/b]","[/u]","[/i]","[/bui]","[/ui]","[/iu]","[/bi]","[/ib]","[/iub]","[/ubi]","[/uib]","[/biu]");
$bb_endput_1 =array("</b>","</u>","</i>","</b></u></i>","</u></i>","</i></u>","</b></i>","</i></b>","</i></u></b>","</u></b></i>","</u></i></b>","</b></i></u>");
$message3 = str_replace($bb_endcode_1,$bb_endput_1,$message2);


#Section 2, other comoon tags

}
?>
#185
Support Requests / MySQL DATABASE IS GONE! DAMN IT!
December 03, 2005, 08:48:17 AM
All of the sudden I go to check my MySQL Databases ans the most important database that I haven't had time to back up is GONE. If one was going to get deleted I'd have hoped it to be MAIN but no, now my DATA DB is totaly gone and I have to remake all of my tables from it, my entire site is full of errors because all the data for logging in and keeping passwwords/etc. is gone.


Why on earth was my DB deleted without any warning!? I'd have thought if we were only allowed one database I wouldn't have been able to create it. This is REALLY crappy.


Am I going to be able to add another database or do I need to figure out how to add some more tables in the mess that I call my MAIN DB?


EDIT: THE DB is STILL here and Active BUT for some reason it won't show up in the manager, I can't back it up or even see it, it's like the manager doesn't even know it exists.
#186
Support Requests / Re: Some php-ish stuff
December 03, 2005, 07:59:37 AM
Quote from: ghost on December 03, 2005, 06:27:31 AM
!(ereg("^[a-zA-Z]{1,}$", $opmail, $arr))

I dont know how to use that to check the $opmail variable to see if its in the format of an email address...

although I know how to add numers...

!(ereg("^[a-zA-Z0-9]{1,}$", $username, $arr))

my friend just never decided to show me the email thing when he showed me this.



I don't have the link jusy yet but I know there's a whoel topic on this at http://ssdesigns.proboards17.com
#187
Support Requests / Re: FTP problems
December 03, 2005, 07:57:40 AM
Quote from: webzone on December 03, 2005, 06:34:15 AM
The online file manager connects using FTP anyway.

My website is hosted here since summer 2004 and I've never ever had any problem connecting with FTP, and I always use it at different times.

N Oit doesn't unless it lies.

Quote
Manage Files
Online File Manager
(Faster, but no archive upload options)


Online FTP File Manager
(Slower, connects via FTP, allows archive uploads)



There are 2 online file managers. One doesn't use FTP and when FTP is screwy it's the only way I've been able to upload big files.
#188
Support Requests / Re: FTP problems
December 02, 2005, 07:53:40 PM
don't feel totaly dumb it's not ALWAYS the firewall. With 4400+ users and a LOT of them connecting by FTP things get jammed up A LOT. Unless it's about 12:00 AM - 3: 00 AM I can't upload anything bigger than 4 MB via FTP or my connection with freepgs dies and the other day the connection just died and I had to wait 15 minutes for it to start working again.  Unfortunately ftp is just th ebest way to manage/build your site from your computer (the best way to manage yso you have backups) but if you're going to upload big files you actually may want to use the online manager and a browser like opera because opera tells you how many KB of data its sending somewhere.
#189
Support Requests / STR_REPLACE doing weird things.
December 02, 2005, 05:52:59 AM
I'm using it to translate albhead to english with this:

$letters2 = array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z");
$letters1 = array("Y","P","L","T","A","V","K","R","E","Z","G","M","S","H","U","B","X","N","C","D","I","J","F","Q","O","W");
$msg2 = str_replace($letters2,$letters1,$msg);
strtolower($msg2);
echo ($msg2);

First of all I have to use one uppercase and one lower or nothing works.

Secondly is you type in a few words it works, but if you type in a whole paragraph some of the letters are mistranslated and show the wrong replacement letter. Why is this??
#190
Support Requests / Re: htaccess
December 01, 2005, 04:16:18 AM
Quote from: webzone on December 01, 2005, 04:04:53 AM
my comment in this thread was relative to the hotlinking protection using .htaccess. the code I posted in this thread effectively allows empty referer headers.

my comment about your code idea was posted in the appropriate thread in "general discussion"...

oh whoops I have off topic tendencies.

I still can't get my .htaccess files to do what they say. It works if I add mp3|wav|mid in the filetypes too right?
#191
Support Requests / Re: htaccess
December 01, 2005, 04:01:33 AM
Quote from: webzone on November 30, 2005, 09:01:03 PM
QuoteYou should always allow people to view the image if they don't send any referer header at all, because some browsers don't.  (or if they just typed the URL in, it wouldn't send a referer header).

If you check the code that I posted, it allows empty referer headers. Of course, a referer check is never a good idea because it works only half of the time and because it is easy to bypass, but it is the easier and faster way to prevent hotlinking.
Hey I did what I said I'd do. The code for this page will store the image name in a MySQL database, it access thenames, changes it snd physically renames the file based on a random number. That waty, everytime somone visites the page the URL changes and hotllinking is impossible. At the moment it does this all at first so that the image can definitely load. If your site sucks and no one revisits the page hotlinking would still be possible. I thought of changing the name AFTER the image is displayed so that the images URL would always be wrong but I was afraid it might keep the images from loading in the first place.

The text around is just debugging stuff: http://crystalchasm.net/MAIN/music/TESTY.php
#192
Support Requests / Re: Encrypt and . . . DECRYPT!??!
December 01, 2005, 03:52:52 AM
Quote from: webzone on November 30, 2005, 09:07:54 PM
Quote from: sixthcrusifix on November 30, 2005, 05:09:15 PM
Well what about md5ing your md5'ed passworrds (for laziness sake)


<?php
$password 
md5($posted_password);
$new_password md5($password);

?>



It's be really hard to figure out the hash of a hash of a string wouldn't it?

it doesn't help at all. example :

let's *pretend* that these two passwords give the same value after md5
pass1 = abcd md5 = 1234
pass2 = efgh md5 = 1234

as crypting the string "1234" using md5 will always provide the same result, you do not fix your collision problem by applying md5 recursively.

the best solution is to use a better cryptographic function. SHA1 is slightly better. the mhash extension of PHP (installed on freepgs) provides loads of hashing functions that are way harder to crack. you can take a look at them at http://php.net/mhash

OH I was just wondering if using md5 twice would make it harder to crack.
#193
Support Requests / Re: Perl scripts
November 30, 2005, 07:45:27 PM
Quote from: sean on November 30, 2005, 06:30:50 PM
Yup.

It's Perl btw. :)

Typos Typos, sorry. ANyway.. um. . . . I dunno I'm a PHP guy I know nothing of how perl works. Isn't it like ruby where you can switch to mod_perl and embed it into html?
#194
Support Requests / Re: Perl scripts
November 30, 2005, 06:28:20 PM
Quote from: sean on November 30, 2005, 06:27:04 PM
Is there anyplace we need to put our perl scripts for them to work?  I have mind in a cgi-bin directory with perl enabled, however, my scripts are not executing.

Any ideas?

Do you have your pearl settings to DIRECT/CGI and not mod_PEARL ? It's in the Scripting Options Panel.
#195
Support Requests / Re: Encrypt and . . . DECRYPT!??!
November 30, 2005, 05:09:15 PM
Quote from: neosquared on November 30, 2005, 09:11:59 AM
Quote from: webzone on November 30, 2005, 01:10:37 AM
You may also consider to use SHA-1, as MD5 is getting easier to break everyday.

Another reason to use SHA1 is because it uses a longer hash, giving more posible results.
Infinite number of strings to feed into the hashing algoritm, finite number of hashes to come out.
So there is a (very small) chance that two passwords will have the same hash.  But it usually isn't something you need to worry about.  And if it does become something you have to worry about, you can put in some sort of protection for brute force attacks.  But I digress.

Well what about md5ing your md5'ed passworrds (for laziness sake)




<?php
$password 
md5($posted_password);
$new_password md5($password);

?>



It's be really hard to figure out the hash of a hash of a string wouldn't it?