Friday, April 02, 2004
Restricting File Access
Restricting File Access
Here is an article that I think will tell me how to only allow logged in users to download files.
Here is an article that I think will tell me how to only allow logged in users to download files.
Thursday, April 01, 2004
adding prepend.php to the php.ini file
PHPBuilder.com - The Resource For PHP Developers
When you do it you don't need to include page.inc from the phplib.
When you do it you don't need to include page.inc from the phplib.
Setting up the Tables in mysql for user authentication
PHPLib and User Authentication - More Info
Wednesday, March 31, 2004
How is the Auth class used usually?
Usually, you write code like this into the top of the page you want to protect:
page_open(array(
"sess" => "My_Session",
"auth" => "My_Auth",
"perm" => "My_Perm")); // see Perm docs for specifics
$perm->check("admin"); // see Perm docs
?>
page_close()
?>
page_open(array(
"sess" => "My_Session",
"auth" => "My_Auth",
"perm" => "My_Perm")); // see Perm docs for specifics
$perm->check("admin"); // see Perm docs
?>
page_close()
?>
Using PHPLIB
A site telling you a little about it
This site is supposed to tell you stuff too, but it isn't working
This seems to be the manual for the phplib
This site is supposed to tell you stuff too, but it isn't working
This seems to be the manual for the phplib
Tuesday, March 30, 2004
Thoughts on user authentication
what if we created table in the database that stored the user rights. We could then pull those rights out of the database. On each web page webpage we will store what type of page it is. We can then modify in the database whether the user has rights to that page or not. When the user logs in to the site, the rights that that user has will then be loaded into memory. The only problem with this idea is that if you want to create a new level of rights you would have to add them to every single page. If you wanted to take away any level of rights it would be easy though. Changing peoples rights is easy to do too. The biggest drawback to this idea that I see is if you ever had to create a new set of rights. But I think that by building rights upon on another it might work. For example, their might be a right that has everybody in it. Any page that requires this right would check to see if the person was logged on and had the everybody right set to true. Then if you went to a salesperson page the page would check to see if the salesperson page right was set to true. If you went to a page that required the admin right then it would check to see if you had that right set to true. Those are just some thought about how to conquer this dilema.
Sunday, March 28, 2004
Friends Poem
The Color Code - What the colors mean
Hartman Communications - News & Events: "
# Red - These are the power wielders! Power, the ability to move from point A to point B, and get things done is what motivates and drives these people. They bring great gifts of vision and leadership and generally are responsible, decisive, proactive and assertive.
# Blue - These are the do-gooders! Intimacy, connecting, creating quality relationships and having purpose is what motivates and drives these people. They bring great gifts of quality and service and are generally loyal, sincere, and thoughtful.
# White - These are the peacekeepers! Peace, or the absence of conflict, is what motivates and drives these people. They bring great gifts of clarity and tolerance and are generally kind, adaptable, good-listeners.
# Yellow - These are the fun lovers! Fun, or the joy of doing something just for the sake of doing it, is what motivates and drives these people. They bring great gifts of enthusiasm and optimism and are generally charismatic, spontaneous, and sociable.
# Red - These are the power wielders! Power, the ability to move from point A to point B, and get things done is what motivates and drives these people. They bring great gifts of vision and leadership and generally are responsible, decisive, proactive and assertive.
# Blue - These are the do-gooders! Intimacy, connecting, creating quality relationships and having purpose is what motivates and drives these people. They bring great gifts of quality and service and are generally loyal, sincere, and thoughtful.
# White - These are the peacekeepers! Peace, or the absence of conflict, is what motivates and drives these people. They bring great gifts of clarity and tolerance and are generally kind, adaptable, good-listeners.
# Yellow - These are the fun lovers! Fun, or the joy of doing something just for the sake of doing it, is what motivates and drives these people. They bring great gifts of enthusiasm and optimism and are generally charismatic, spontaneous, and sociable.
Colors - Top turn-offs for each one
Top 5 BLUE Turn-Offs:
1. Being non-committal
2. Becoming emotionally unavailable or dismissive
3. Demanding spontaneity
4. Promoting too much change
5. Abandoning them / Being disloyal
Top 5 WHITE Turn-Offs:
1. Forcing confrontation
2. Being cruel or insensitive
3. Being domineering or too intense
4. Forcing immediate verbal expression
5. Demanding leadership
Top 5 YELLOW Turn-Offs:
1. Ignoring them
2. Controlling their schedules / Consuming their time
3. Being too serious or sober in criticism
4. Being unforgiving
5. Expecting them to dwell on problems
Top 5 RED Turn-Offs:
1. Embarrassing them in front of others
2. Arguing from an emotional perspective
3. Being slow and indecisive
4. Taking their arguments personally
5. Waiting for them to solicit your opinion
1. Being non-committal
2. Becoming emotionally unavailable or dismissive
3. Demanding spontaneity
4. Promoting too much change
5. Abandoning them / Being disloyal
Top 5 WHITE Turn-Offs:
1. Forcing confrontation
2. Being cruel or insensitive
3. Being domineering or too intense
4. Forcing immediate verbal expression
5. Demanding leadership
Top 5 YELLOW Turn-Offs:
1. Ignoring them
2. Controlling their schedules / Consuming their time
3. Being too serious or sober in criticism
4. Being unforgiving
5. Expecting them to dwell on problems
Top 5 RED Turn-Offs:
1. Embarrassing them in front of others
2. Arguing from an emotional perspective
3. Being slow and indecisive
4. Taking their arguments personally
5. Waiting for them to solicit your opinion
Colors - Top turn-ons for each one
Top 5 BLUE Turn-Ons:
1. Being sincere and genuine
2. Appreciating and understanding them
3. Being thoughtful
4. Expressing interest in personal details
5. Behaving appropriately and being well mannered
Top 5 WHITE Turn-Ons:
1. Accepting (and supporting) their individuality
2. Being kind
3. Creating an informal, relaxed atmosphere
4. Being patient and gentle
5. Introducing options and ideas for your interactions
Top 5 YELLOW Turn-Ons:
1. Being flirtatious
2. Offering praise and adoration
3. Reinforcing interest with physical contact
4. Promoting creative and fun activities with them
5. Accepting some playful teasing, joking, "comic relief"
Top 5 RED Turn-Ons:
1. Being competent
2. Demanding attention and respect from them and others
3. Being direct, brief, and specific
4. Presenting issues logically
5. Supporting their leadership instincts
1. Being sincere and genuine
2. Appreciating and understanding them
3. Being thoughtful
4. Expressing interest in personal details
5. Behaving appropriately and being well mannered
Top 5 WHITE Turn-Ons:
1. Accepting (and supporting) their individuality
2. Being kind
3. Creating an informal, relaxed atmosphere
4. Being patient and gentle
5. Introducing options and ideas for your interactions
Top 5 YELLOW Turn-Ons:
1. Being flirtatious
2. Offering praise and adoration
3. Reinforcing interest with physical contact
4. Promoting creative and fun activities with them
5. Accepting some playful teasing, joking, "comic relief"
Top 5 RED Turn-Ons:
1. Being competent
2. Demanding attention and respect from them and others
3. Being direct, brief, and specific
4. Presenting issues logically
5. Supporting their leadership instincts
Sundays are by far the best day of the week!
I love Sudndays! Church was wonderful today, as always. I love the spiritual rejuvenation I get when I go. We also have all this time in the afternoon to read and study, and spend with family and friends. In church today there was a member of my ward got up and bore his testimony about prayer. He quoted the scripture about when Jesus was praying in the Garden of Gethsemane.. Luke 22:44, which reads, "And being in an agony he prayed more earnestly: and his sweat was as it were great drops of blood falling down to the ground." This really made me think about my prayers. Do I really pray more ernestly in difficult times? What does it mean to pray more ernestly? How can I pray more ernestly? I decided that one of the things that I need to do is to spend more time praying. I also need to make sure that I have sufficent time to pray. In the morning I need to have enough time to really say what I need to say. At night I need to be awake enough that I can really pray and communicate with my Father in Heaven. Prayer is a wonderful thing. I really believe that I need to use it more effectively in my life. There is so much power in prayer.
Driving a stick
This last Friday Andrew Tang, my good buddy, let me borrow his car when he went to Salt Lake City. The interesting thing was that his car has a manual transmission. The last time I had driven a stick was before the mission, over seven years ago. Andrew had to help me re-learn the basics. I was able to drop him off at the bus station and drive back to my house with out killing us. I need a little more practice driving a stick to do it well though. It was a fun experience! Andrew made fun of me the whole time he was in the car. haha! I didn't end up driving it on Saturday like I had planned though. I ended up spending the whole day studying for the GMAT.
Studying for the GMAT
On Friday night I studied for the GMAT for quite a while. I studied while I watched some of the basketball games. Then I studied until about 2 am. I woke up on Saturday at about 11:30am and read my scriptures. Then i studied for the GMAT. I spent about and hour watching basketball, but besides that all I did was study for the GMAT. I didn't even leave the house. I also took one of the powereprep practice exams. It took about 3 hours. I even missed the Oklahoma State vs St. Josephs basketball game that I wanted to watch. I got a 650 on the practice exam. If I do that well on the real test that I take on Tuesday I will be content.