Page 1 of 2

mini zeus

Posted: Tue Aug 24, 2010 3:08 pm
by Mysoogal
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 470 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

Re: Zeus Video sharing script - released 2010

Posted: Tue Aug 24, 2010 3:17 pm
by Mysoogal
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

Re: Zeus Video sharing script - released 2010

Posted: Wed Aug 25, 2010 11:40 am
by Neo
Hi buddy...after a long time :)
This is a wonderful piece of work. Thanks for sharing.

Re: Zeus Video sharing script - released 2010

Posted: Fri Aug 27, 2010 5:30 am
by Mysoogal
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:

Re: Zeus Video sharing script - released 2010

Posted: Fri Aug 27, 2010 11:51 am
by Neo
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.

Re: Zeus Video sharing script - released 2010

Posted: Fri Aug 27, 2010 10:04 pm
by Mysoogal
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

Re: mini zeus

Posted: Sat Aug 28, 2010 1:28 pm
by Neo
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.

Re: mini zeus

Posted: Sat Aug 28, 2010 7:45 pm
by Mysoogal
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 473 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 ?

Re: mini zeus

Posted: Thu Sep 02, 2010 12:42 am
by Neo
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")) ) {

Re: mini zeus

Posted: Fri Sep 03, 2010 2:10 am
by Mysoogal
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