



            A newbis documentation !
         





-------------------------------------------------------------------------------------------------------
cronjobs.php 
             this is the script that looks for files older then 12 hours to delete
             the cronjobs.php should be set to run every 1 hour to clean old files
             it looks into the uploads folder ! if you want to change the age of delete
             look for this $expiretime=720; 720 mints is 12 hours, go figure lol
             
                                                                                    X done
-------------------------------------------------------------------------------------------------------             
filelist.php  
              this is the script used in upload.php with jquery ajax refresh div
              to show live updating of user uploaded files, this is displayed on
              the main page upload.php under div called  <div id="live_encoding"> </div> 
              moving this around will also move the entire updating block 
              
                                                                                        X done
                                  
                                  
------------------------------------------------------------------------------------------------------                                 
random.php     
              this is the random.php script used to pick random videos to stream from the
              uploads folder, every time you visit the page index.php you will get random
              videos from the uploads folder.
              
              
                                                                                      X done
------------------------------------------------------------------------------------------------------------------------             
upload.php    
              this is the script used to upload video directly into the uploads folder
              this really needs to be updated ! its located in upload.php under line 232
              its in in root of website upload.php not in modules :) remember that.
              
              just a side note, we could probably use the same cronjob script to delete
              every unwanted file extension possible with a cronjob running every 5 mints :O
              doesnt sound good but that is a option for now !
              
              
                                                                                      X done
              
              
              
--------------------------------------------------------------------------------------------------------------------------              
personal shit  
             
              there are many typo's but who gives a shit, give me a break i'm still learning to code
              in php and write all this crap down.
              
              
                                                                                            X bullshit
              
------------------------------------------------------------------------------------------------------------------------              
to do - delete function   

               need to add a delete function under the filelist.php so it enables me to delete any
               given file i pick   follow up, there is a script which does not seem to work under resources 
               folder called delete.-php-function.txt  this is a php script, not sure why its not working, this is
               the reason i had to look for third part file management script :( sad ! 
               
                                                                                                NOT done :(
                                                                                                still looking for
                                                                                                an answer
               
                                                  
               
------------------------------------------------------------------------------------------------------------------------------------               
to do - ajax edit $filename 
               
                             this really needs to be added after the upload gets completed :(
                             have no idea how will will be added ! shit
               
                                                                                                     X done

--------------------------------------------------------------------------------------------------------------------------------------             
management.php   
                  this is the script used to remove files when needed, you can also rename files, etc
                  open management.php and look for 
                  
                  # Settings - Change as appropriate. See online documentation for explanations. #
                  define("USERNAME", "admin"); // Your default username.
                  define("PASSWORD", "admin"); // Your default password.
                  
                  
                  put whatever password you want.
                  
                  
                  sidenote, you use this script when some idiot uploads a wrong file extension for example
                  video.mkv or video.mpg etc, due to using only Flash, we only support mp4,flv and rest of adobe
                  supported rubbish extensions.
                                                                                                    X done
             
-------------------------------------------------------------------------------------------------------------------------------------