|
#1
|
||||
|
||||
|
Addon: Upload addon (Admin addon)
Name:
Add Addon Desc: You will never have to FTP to your addon folder again! Once installed, this addon lets you upload an addon via the admin panel. *pixelpost version 1.5beta1 required* Addon Details: Version: 1.0.3 Added: 2006-02-20 Updated: 2006-02-23 Category: addon Requires Pixelpost version - 1.5beta1 Installation: Extract the archive and add admin_addon_manager.php to your addons folder. You can utilize this new feature by finding it under OPTIONS > ADD ADDON Please note, this only works with single file addons. If an addon requires you to upload separate files to a different directory other than the /addons directory then you will have to manually upload that file. CHANGE LOG: 02.22.2006 - v1.0.2
Install this addon at your own risk! I'm not responsible for any mishaps this addon might cause. I'm no PHP programer, so if someone sees something that can be cleaned up, then please do so! Download: http://pixelpost.org/v1/devfiles/?id=153 (v1.0.3) Screenshot:
__________________
Pixelpost Documentation | Visual Pixels | My Addons | Transition Bottlerocket Fund Last edited by Dkozikowski; 02-23-2006 at 12:28 PM. |
|
#2
|
||||
|
||||
|
hope to see it in action.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
|
#3
|
||||
|
||||
|
All should be OK with it now. I re-posted the link in the first post.
__________________
Pixelpost Documentation | Visual Pixels | My Addons | Transition Bottlerocket Fund |
|
#4
|
|||
|
|||
|
Good job - works as advertised - the only improvement I can suggest is check for Admin login before doing a move_uploaded_file
To check for admin login do something like PHP Code:
__________________
http://se.nsuo.us - A photoblog of sensual, abstract nudes [may not be work safe for some] My Pixelpost Addons, Cheesecake-Photoblog Software |
|
#5
|
||||
|
||||
|
i wasn't able to get the above code working properly. It worked a little too well actually. even if you were logged in as admin it would prevent the upload.
instead, I'm using this PHP Code:
__________________
Pixelpost Documentation | Visual Pixels | My Addons | Transition Bottlerocket Fund |
|
#6
|
|||
|
|||
|
Ummm... you are actually negating the check - what you are saying in code can be said in plain English as
"Check to see if the $cfgrow['password'] is not the same as $_SESSION["pixelpost_admin"] - if it is not then move uploaded file" Try doing it the reverse way PHP Code:
Cheers
__________________
http://se.nsuo.us - A photoblog of sensual, abstract nudes [may not be work safe for some] My Pixelpost Addons, Cheesecake-Photoblog Software |
|
#7
|
||||
|
||||
|
Weird. I understand what you are saying about the code i used, but it worked when i tested it. anyway, i applied your new code and it still does not upload. here is the full source:
PHP Code:
__________________
Pixelpost Documentation | Visual Pixels | My Addons | Transition Bottlerocket Fund |
|
#8
|
|||
|
|||
|
Ahhhh! found a GOTCHA for admin addons to get $cfgrow in your admin addon you have declare it as global so if you add
PHP Code:
PHP Code:
Another thing - PHP Code:
__________________
http://se.nsuo.us - A photoblog of sensual, abstract nudes [may not be work safe for some] My Pixelpost Addons, Cheesecake-Photoblog Software |
|
#9
|
||||
|
||||
|
Thank you very much se.nsuo.us
I revamped the code and now check for the extension, not type. I also cleaned the code up a bit! Let me know what you think now. PHP Code:
__________________
Pixelpost Documentation | Visual Pixels | My Addons | Transition Bottlerocket Fund |
|
#10
|
||||
|
||||
|
Quote:
www.raminia.com/ppwiki/
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
| Post Reply |
| Thread Tools | |
|
|