Current location: Hot Scripts Forums » Advertising Forums » Website Reviews » Admin files of my program


Admin files of my program

Reply
  #1 (permalink)  
Old 09-16-03, 03:57 PM
darkcarnival's Avatar
darkcarnival darkcarnival is offline
PHP/MySQL coder
 
Join Date: Jun 2003
Posts: 939
Thanks: 0
Thanked 0 Times in 0 Posts
Admin files of my program

hi,

well i got the admin file finished of my program. and i already got the other files checked so i need this 1 done. now i posted 1 of my other files on here once b4 so let me say this so i wont get ne message.

1. i just want a code check not to run it

2.dont ask for ne other files b/c this 1 is all u need

hope that cleared the air, i just want someone to look at the file and tell me what errors(if any) there are and what line it is to fix it or fix it for me.hope someone will help since all i need is this file checked then i can run it.thx.

(forgot the file its on the new post)
Reply With Quote
  #2 (permalink)  
Old 09-16-03, 03:59 PM
darkcarnival's Avatar
darkcarnival darkcarnival is offline
PHP/MySQL coder
 
Join Date: Jun 2003
Posts: 939
Thanks: 0
Thanked 0 Times in 0 Posts
heres the file i forgot to add (embrasris)
Reply With Quote
  #3 (permalink)  
Old 09-16-03, 04:38 PM
YourPHPPro's Avatar
YourPHPPro YourPHPPro is offline
Community VIP
 
Join Date: Aug 2003
Posts: 430
Thanks: 0
Thanked 0 Times in 0 Posts
This might be problematic, since it doesn't appear that you need to be 'logged' in or verified to do anything:

http://www.example.com/admin.php?act...te=Artist&id=*
Reply With Quote
  #4 (permalink)  
Old 09-16-03, 04:45 PM
darkcarnival's Avatar
darkcarnival darkcarnival is offline
PHP/MySQL coder
 
Join Date: Jun 2003
Posts: 939
Thanks: 0
Thanked 0 Times in 0 Posts
ok then can u help me then with that? i thought that didnt work. thx for telling me that.
Reply With Quote
  #5 (permalink)  
Old 09-16-03, 05:37 PM
YourPHPPro's Avatar
YourPHPPro YourPHPPro is offline
Community VIP
 
Join Date: Aug 2003
Posts: 430
Thanks: 0
Thanked 0 Times in 0 Posts
Check out:

Secure Programming in PHP
http://www.zend.com/zend/art/art-oertli.php


Or this:

Secure PHP Development: Building 50 Practical Applications
http://www.amazon.com/exec/obidos/tg.../-/0764549669/
http://search.barnesandnoble.com/boo...sbn=0764549669
Reply With Quote
  #6 (permalink)  
Old 09-16-03, 06:50 PM
the|Skrilla the|Skrilla is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Louisiana, USA
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
I didn't run the script, but just looked at the source and have a suggestion about the recurring use of echo.

A far more efficient and cleaner way to echo large blocks of output is to do this:
PHP Code:

echo <<<EOF

<html>
<body>
Here is some horribly invalid html!
{$this_is_how_to_include_a_variable}
</body>
</html>
EOF; 
note that the echo <<<EOF and EOF; cannot be tabbed in for some odd reason.
__________________
Lead Level Designer - Liquid Element
Reply With Quote
  #7 (permalink)  
Old 09-16-03, 07:42 PM
YourPHPPro's Avatar
YourPHPPro YourPHPPro is offline
Community VIP
 
Join Date: Aug 2003
Posts: 430
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
A far more efficient and cleaner way to echo large blocks of output is to do this:
Or, http://smarty.php.net might even be a better solution
Reply With Quote
  #8 (permalink)  
Old 09-16-03, 07:47 PM
the|Skrilla the|Skrilla is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Louisiana, USA
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
I suppose, but it's kind of complex IMO since this is a single-file script .
__________________
Lead Level Designer - Liquid Element
Reply With Quote
  #9 (permalink)  
Old 09-17-03, 01:07 PM
darkcarnival's Avatar
darkcarnival darkcarnival is offline
PHP/MySQL coder
 
Join Date: Jun 2003
Posts: 939
Thanks: 0
Thanked 0 Times in 0 Posts
well i plan to clean-up the echos in v2.0 for now i just want to test and run. but my login is in sessions and the place i got it from didnt give a whole lot of info so i did what i could by looking ar source if you know of a link that helps with sessions that would help thx.also if u got other suggestions feel free to tell me while im still working on the kinks
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automated script to delete certain files shib_s Script Requests 3 08-03-06 05:28 PM
admin interface sammy sandbag PHP 0 09-20-03 02:01 AM
Digitally 'watermark' files Safrane PHP 4 09-08-03 09:02 AM
Creating directories and files cobalto2060 PHP 1 08-17-03 03:20 PM
multiple Text files to html. andreas66 JavaScript 4 06-13-03 08:04 AM


All times are GMT -5. The time now is 02:09 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.