[PHP] Xup Filehoster Source

Dieses Thema im Forum "Webentwicklung" wurde erstellt von raid-rush, 28. November 2008 .

Schlagworte:
Status des Themas:
Es sind keine weiteren Antworten möglich.
  1. 28. November 2008
    Zuletzt bearbeitet: 14. April 2017
    Xup Filehoster Source

    Auf Anfrage hab ich mich entschlossen euch die relevanten Files vom alten Xup offen zu legen.

    Es sind nicht alle files und keine templates dabei, es ist also nicht einfach so fertig und lauffähig, ich biete hier nur die kernfunktionen vom ganz alten xup.

    für programmier anfänger evtl ja intressant, das php coding ist hier sehr einfach und auch nicht professionel.

    für alle anderen ist es vll. auch mal ganz lustig zu sehen wie billig das ganze mal war

    hier zum download: Album: 404 not found | xup.in

    Kleine auszüge aus dem Xup Source:
    PHP:
    ...
       include_once(
    "mysql_connect.php" );
        include_once(
    "conf.php" );
        include_once(
    "functions.php" );

        require 
    './libs/Smarty.class.php' ;

        
    $smarty  = new  Smarty ;

        
    $smarty -> compile_check  true ;
        
    $smarty -> debugging  false ;


        
    $up1  = new  xup ();
        
    $up1 -> up_dir ( $updir ); ...
    PHP:
         function  check_upload ( $file , $max_size )
        {
          if(
    $file [ "size" ]> &&  $file [ "size" ]< $max_size )
          {
            if(
    $file [ "error" ] ==  UPLOAD_ERR_FORM_SIZE )
            {
    $this -> ERROR  "MAX_SIZE" ; return  false ;}

            if(
    $file [ "error" ] ==  UPLOAD_ERR_OK )
            {
              return 
    true ;
            }
            else{
    $this -> ERROR  "UP_ERROR" ; return  false ;}

          }
          else{
    $this -> ERROR  "MAX_SIZE" ; return  false ;}
        }
    Es gibt dazu keinen Support oder Updates mehr... also bitte fragt erst garnicht danach.
     
  2. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.