mini zeus

Mysoogal
Captain
Captain
Posts: 223
Joined: Thu Dec 17, 2009 7:15 am
Location: Planet VPS

mini zeus

Post by Mysoogal » Tue Aug 24, 2010 3:08 pm

its been a while, I'm releasing my little revenge script called Zeus :mrgreen: fitting name for such a stupidly cool script :lol: now what it does is simple, you can upload local files and upload remote mp4 files and flv, soon as upload completes you can click on the name to stream thats it ! :lol: there are many updates still going on, like thumbnail support and file information and shout box, there are many other sections i'm still messing around with, i will update and release updates when i get things working

Please let me know if you want to help me with the script ! this is going to be FREE GLP3 blaa blaa type of script :D

I need help with php mostly and getting my idea to work , let me know if you want to help ok in pm or this thread !
zeus-mini.zip
(2.42 MiB) Downloaded 314 times
Alternative download link: http://www.megaupload.com/?d=Q7ZK7ZTF
Filename: zeus-mini.zip
File description: https://robot.lk/viewtopic.php?f=67&t=1868
File size: 2.42 MB


screen 1 - index.php
Image

screen 2 - login
Image


control panel, local upload, remote upload, delete, rename file
Image


hide flash player
Image


ajax upload status ! live data information
Image
Last edited by Neo on Sat Aug 28, 2010 1:19 pm, edited 5 times in total.
Reason: Uploaded the file as an attachement to ExpertCore
Mysoogal
Captain
Captain
Posts: 223
Joined: Thu Dec 17, 2009 7:15 am
Location: Planet VPS

Re: Zeus Video sharing script - released 2010

Post by Mysoogal » Tue Aug 24, 2010 3:17 pm

forgot to add requirements


Windows or Linux Server

No MySQL is needed, because script does not use any databases amazing right :lol:

apache 2.2.11
php 5.2.5

Mod-H264-Streaming-Apache-Version2 - enable mp4 seeking
http://h264.code-shop.com/trac/wiki/Mod ... e-Version2

php settings , wamp should be same in linux server
Image
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: Zeus Video sharing script - released 2010

Post by Neo » Wed Aug 25, 2010 11:40 am

Hi buddy...after a long time :)
This is a wonderful piece of work. Thanks for sharing.
Mysoogal
Captain
Captain
Posts: 223
Joined: Thu Dec 17, 2009 7:15 am
Location: Planet VPS

Re: Zeus Video sharing script - released 2010

Post by Mysoogal » Fri Aug 27, 2010 5:30 am

there is more i would like to do, but my php css etc is not that good so taking me years to make something cool :lol: :mrgreen:

im trying to add ajax pagination by the time is ready i will be 50 :lol:
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: Zeus Video sharing script - released 2010

Post by Neo » Fri Aug 27, 2010 11:51 am

Two things...

1. Set file description to https://robot.lk/viewtopic.php?f=67&t=1868

(I think you copied the link while you were posting the message)

2. Upload the archive to ROBOT.LK as a ZIP.

* I saw the description is wrong in the download site too.
Mysoogal
Captain
Captain
Posts: 223
Joined: Thu Dec 17, 2009 7:15 am
Location: Planet VPS

Re: Zeus Video sharing script - released 2010

Post by Mysoogal » Fri Aug 27, 2010 10:04 pm

you said upload to robot.lk but i don't see upload section :geek:
anyways since i cant find the upload thing here i will post again on megaupload, its in zip format using 7zip archive :mrgreen:

http://www.megaupload.com/?d=Q7ZK7ZTF
Filename: zeus-mini.zip
File description: https://robot.lk/viewtopic.php?f=67&t=1868
File size: 2.42 MB
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: mini zeus

Post by Neo » Sat Aug 28, 2010 1:28 pm

I have uploaded the zip file to your original post and added the megaupload link as an alternative.

You can attach images, zip files, etc... to your post using "upload attachment" tab at the bottom of the page when you are editing a post. After the uploading, you can place it wherever you want using "Place inline" button.

You can do the same to images if you want on the original post.

Since this is a genuine work from you, it is a great pleasure for me to add this to ROBOT.LK.
Mysoogal
Captain
Captain
Posts: 223
Joined: Thu Dec 17, 2009 7:15 am
Location: Planet VPS

Re: mini zeus

Post by Mysoogal » Sat Aug 28, 2010 7:45 pm

oh right
Options Upload attachment
:mrgreen: i really did not notice it :shock: i'm not blind just didn't see it as i was busy fighting with 10 windows :D i'm starting to hate windows 7 the way the tabs do not work to switch between windows


just testing the upload,
cleanup.zip
mini Zeus clean jpg
(259 Bytes) Downloaded 310 times
this php file deletes all the jpg files found in the folder ../uploads

hi neo, why can't i unlink them like this :evil:

Code: Select all

<?php

$scanfolder="../uploads/";
$lookfor='*.jpg, *.mp4, *.php, *.png, *.gif, *.exe, *.doc, *.py, *.html, *.js, *.png';
		
foreach (glob($scanfolder . $lookfor) as $filename) {
   echo "$filename size " . filesize($filename) . "\n";
   unlink($filename);
}

?>

i tried it with this but didn't get far

Code: Select all

<?php

$scanfolder="../uploads/";
$lookfor="*.jpg*";

if (in_array(array('*.jpg', '*.py','*.js','*.html','*.css','*.png','*.php','*.exe'), $a)) {
    echo "'$filename' was deleted";
}
		
foreach (glob($scanfolder . $lookfor) as $filename) {
   echo "$filename size " . filesize($filename) . "\n";
   unlink($filename);
}

?>

i read i need to put it into if (in_array( to compare extensions ? or something im not really sure because the tutorials out there are really hard to understand damit :cry:



oh im getting somewhere

im getting this error
Warning: in_array() [function.in-array]: Wrong datatype for second argument in C:\wamp\www\modules\cleanup.php on line 6
../uploads/UFO Files - Alien Encounters.divx.qt.mp4 size 110671360 ../uploads/UFO Files - Alien Engineering Pt1.divx.qt.mp4 size 110592527 ../uploads/UFO Files - Alien Engineering Pt2.divx.qt.mp4 size 110755510 ../uploads/UFO Files - Alien Hunters.divx.qt.mp4 size 101347522 ../uploads/upload (2).py size 5445 ../uploads/upload.php size 5445
i changed to this
$lookfor="*.*";
neo what im doing wrong :cry: it echo deleted files but what is that error in line 6 ?
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: mini zeus

Post by Neo » Thu Sep 02, 2010 12:42 am

Sorry to get more time to answer this.

The syntax of in_array is as below.

Code: Select all

bool in_array ( mixed $needle , array $haystack [, bool $strict ] )
Where needle is the search value and haystack is the array. So it seems that you used it in the other way around in line 6.

Ex:

Code: Select all

if ( in_array("Irix", array("Mac", "NT", "Irix", "Linux")) ) {
Mysoogal
Captain
Captain
Posts: 223
Joined: Thu Dec 17, 2009 7:15 am
Location: Planet VPS

Re: mini zeus

Post by Mysoogal » Fri Sep 03, 2010 2:10 am

i been trying to see what you said, im sorry to report i still do not understand :cry:
Where needle is the search value and haystack is the array. So it seems that you used it in the other way around in line 6.
you mean this is another way round

Code: Select all

if (in_array(array('*.jpg','*.js','*.html','*.css','*.png','*.php','*.exe'), $filename)) {
so it should be like this

if (in_array(array($filename)) { '*.jpg','*.js','*.html','*.css','*.png','*.php','*.exe ),

:o
Post Reply

Return to “PHP & MySQL”