AV1611
-
Posts
997 -
Joined
-
Last visited
Posts posted by AV1611
-
-
Line 48: if($results = mysql_num_rows($sql_query) != 0)
change to
$results=mysql_num_rows($sql_query);
if($results != 0)
-
The world's your oyster.
You create the database and the user/passwords.
Then you modify the script to reflect that reality.
-
echo -n <password> | md5sum
mysql -u root -p
use <name of database>
show tables;
select ID, user_login, user_pass, FROM <table from above>
UPDATE that record.user_pass with the string from above
-
Well... hope this is the right place for this question
Anyways,
My old LAMP server (FC6) needed to be replaced as it is out of the update cycle and had lot's of "issues".
I ran many virt's via ispconfig.
I have built the new server and have everything including the virt's sites.
One question:
How do I migrate the old maildir mail from the old postfix machine to the corresponding user on the new machine?
Thanks!!!
-
Part 2:
And, is outlook express = IE?
I am sending out an html newletter, and I have a 1px error in outlook express 6, but works great in evolution, thunderbird, etc...
-
This doesn't work if you use in in the <head><style> section:
<!--[if IE]>
div.menus {
margin-top: 13px;
}
<!--[endif]-->
How can I change the padding to
div.class?
I want to margin-top to be 12px unless it's IE, then I want it 13px instead, cause M$ can't add
I tried it inline:
<div class="whatever" <!--[if IE]-->style="margin-top: 13px;"<!--[endif]-->>
but then it just echo's the tag like text.
So, the question really is, how do I set the margin-top of an element to 12 unless it's IE, then I want 13 instead?
-
the server I am on is not fast... it will move to production server when complete.
I did find the error in the page jumping... I closed a <p> with another <p>
-
Well,
Good question.
Currently I host several domains, so the to would always be a designated local user, but what if the account wanted the mail send to for example name@gmail.com?
I guess that the issue...
I guess as long as I hard code the to: then the from doesn't matter?
I just have been overreacting since I got exploited last year... I have worked VERY hard to keep my server off the spam lists and have done a good job... I just don't wanna risk it.
-
Mail forms and Backscatter
I currently do not allow mailforms on my server that allow the form to ender a TO or FROM as I have been backscatter exploited in the past.
I also don't allow open relay and never will.
That means the from is always static (system@mydomain.com)
Question:
How can I ensure that the TO on the form only contains a SINGLE to? And how do I keep robots from just bouncing off it?
Thanks.
-
I'd try:
chmod 644 /etc/mail/local-host-names
chmod 644 /etc/mail/trusted-users
-steve
P.S. I use postfix which I much prefer over sendmail.
I did
2. [root@host etc]# chmod u=rwx,g=,o= /etc/mail/trusted-users
[root@host etc]# chmod u=rwx,g=,o= /etc/mail/local-host-names
would have thought that was the solution... but I guess postfix it is.
I love postfix, but this server is my development server, not my hosting one... so I didn't wanna do that but oh well...
you would think that yum via livna it woulda just worked. go figure.
-
sendmail not starting
decided to install sendmail on my fedora 9 so I can use a mail form.
here's what I did:
1. yum install sendmail sendmail-cf
[root@host etc]# service sendmail start
Starting sendmail: 451 4.0.0 /etc/mail/sendmail.cf: line 91: fileclass: cannot open '/etc/mail/local-host-names': World writable directory
451 4.0.0 /etc/mail/sendmail.cf: line 598: fileclass: cannot open '/etc/mail/trusted-users': World writable directory
[FAILED]
2. [root@host etc]# chmod u=rwx,g=,o= /etc/mail/trusted-users
[root@host etc]# chmod u=rwx,g=,o= /etc/mail/local-host-names
[root@host etc]# service sendmail start
Starting sendmail: 451 4.0.0 /etc/mail/sendmail.cf: line 91: fileclass: cannot open '/etc/mail/local-host-names': World writable directory
451 4.0.0 /etc/mail/sendmail.cf: line 598: fileclass: cannot open '/etc/mail/trusted-users': World writable directory
[FAILED]
so,
[root@host mail]# ls -la
total 208
drwxr-xr-x 2 root root 4096 2008-09-19 12:06 .
drwxr-xr-x 137 root root 12288 2008-09-19 12:06 ..
-rw-r--r-- 1 root root 469 2008-03-29 05:27 access
-rw-r----- 1 root root 12288 2008-09-19 12:06 access.db
-rw-r--r-- 1 root root 233 2008-03-29 05:27 domaintable
-rw-r----- 1 root root 12288 2008-09-19 12:06 domaintable.db
-r--r--r-- 1 root root 5584 2008-03-29 05:27 helpfile
-rwx------ 1 root root 64 2008-03-29 05:27 local-host-names
-rw-r--r-- 1 root root 997 2008-03-29 05:27 mailertable
-rw-r----- 1 root root 12288 2008-09-19 12:06 mailertable.db
-rw-r--r-- 1 root root 1048 2008-03-29 05:27 Makefile
-rw-r--r-- 1 root root 58624 2008-03-29 05:27 sendmail.cf
-rw-r--r-- 1 root root 7205 2008-03-29 05:27 sendmail.mc
-r--r--r-- 1 root root 41706 2008-03-29 05:27 submit.cf
-rw-r--r-- 1 root root 941 2008-03-29 05:27 submit.mc
-rwx------ 1 root root 127 2008-03-29 05:27 trusted-users
-rw-r--r-- 1 root root 1847 2008-03-29 05:27 virtusertable
-rw-r----- 1 root root 12288 2008-09-19 12:06 virtusertable.db
[root@host mail]#
As you can see the error message is not true. those files are certainly NOT world writeable.
Help?
-
isn't there a possibility of the same random number quote being produced in the code you suggest?
-
$_SERVER['HTTP_REFERER'];
Just know that it can be spoofed
I know that but I am creating my own logging like statcounter and I knew all the stuff except that one... I'm not really using it for security as much as general knowledge. thanks.
-
how can I know the uri for the referring page?
i.e.
if you come to my site I wanna know you came from www.othersite.com or similar.
thanks.
-
I thinking the answer is no
I want vertical (only) scrollbar all the time but never a horizontal.
-
LOL
I wanted the opposite... I want scrollbar on right all the time
-
I have a site that extends beyond the bottom of the page forcing scrollbars, except on one page... which causes that irritating shift of the site.
can I force scrollbars (vertical only) (all browsers) or do I need to pad that page with <br />'s?
Thanks
-
As I'm clicking on the left menu, from top to bottom, once I get to "Irrigation...", the address on top of that menu, the line spacing or something spreads, causing the whole menu to shift down.
The top menu look much better than before.
which browser? I don't see it in ff3 or ie6.1...
-
ok
This will be my last bump of this...
I have gotten about 80% of the site done.
I have most of the left side menu items done, none of the top ones though.
Can ya'll click a few and see if the site seems ...appropriate... cosmetics, etc...
Also, look at the training schedule/calendar...
lemme know...
thanks.
-
that statement will always be true because you are saying if 1 == 1.
-
I know ZERO js so I can't help you. My suggestion was a php-only solution... by a clause that simply changes the class on the cell based on if the link says short or long cells. Or by truncating the info vs. not truncating so you don't need to change the css.
-
I feel stupid... I figured it out...
that function loops back to the current day...
solved.
-
sure
make a database of random sayings and select the saying from a random number that's the idx for that record.
um...
you a spammer?
-
search for 'pagination'
there are several threads on this site about how to do them.
[SOLVED] POSTFIX
in Other Web Server Software
Posted
Hey, long time Thope! Hi!
Anyways,
Yea, I copied them over and had to make sure I chmod them to the new user name (ISPConfig has a prefix)
i.e. web14_username on the old system might be web8_username on the new one cause I didn't recreate them in order, etc.
but after that all went well.
Thanks.