BLHTML.org

BLHTML.org / Web Programming / BLHTML / BLHTML Manual / BLHTML funktion list / BLHTML funktion list /

 
  UPLOAD 3684 0
#UPLOAD# is an independent function
Rights to use this function #UPLOAD#:
  • All with download objects

  • #UPLOAD#
  • Download Objects administreras under Account Admin -> Download Objects
  • Upload file to webservern to erhållen plats in Download Objects
  • Kan only ladda upp files to eget account
  • #UPLOAD# returnerar arrayen $blhtml_download_object[+] som contents accounts all Download Objects
    • Functionsvariables:
    • #DATA[blhtml_upload] post=hidden value=2# Sätter:
      <form enctype=multipart/form-data name=lokalt action=index.php method=post>
      for att kunna skicka en fil to webservern
    • #DATA[blhtml_click] post=hidden value=96# Talar if vilken click statestik table/account som skall användas
      Här används account 96
    values:  defaults:  description:
    valueLagrings plats for Download Objects
    alt$altInformations text som representerar download Objectset
    member$memberIf värde can only members download object
    always$alwaysIf värde summeras ej IP addresserna (can only klicka en gång)

    UPLOAD example
    Upload file and sätter associated objects value.
    Shows även accounts all objects and contents.

    Include variables:
    blhtml_upload=2

    <br>
    #DATA[blhtml_upload] post=hidden value=2#
    #DATA[blhtml_click] post=hidden value=96# // Klick registrerings account 96
    #UPLOAD#

    #IF($blhtml_download_object) then(#GOSUB upload#)#
    #SET_CATCH_PAGE#

    #IF($blhtml_download_object) then(#GOTO list#)#

    <div class=info>
    Download objects saknas for user <b>#$myname#</b>!
    </div>


    #HALT#


    #: upload#
    #PRINT size=5 value(Your files on #SYSTEM[name]#) blhtml=on#
    <hr color=#SYSTEM[page_ink]#><br>

    Your file slot:<br>
    #DATA[id] post=new type=dropdown value=$blhtml_download_object#<br><br>

    #DATA[member] post=new type=checkbox class=std# Member only<br>
    #DATA[always] post=new type=checkbox class=std# Always register IP address<br><br>

    Upload file:<br>
    #DATA[userfile] post=new type=file#<br><br>
    #UPLOAD value=$id#

    Informations text:<br>
    #DATA[alt] post=new#<br><br>

    #PLOPP value(Upload your file)#<br><br><br>
    #RETURN#


    #: list#
    #SYSTEM[whoami] return=who#
    #$n=0#
    #: loop#
    Slot #$blhtml_download_object[$n]#: #DOWNLOAD id=$who value($blhtml_download_object[$n]) blhtml=on#<br>
    #SUM value($n 1) return=n#
    #IF($blhtml_download_object[$n]) then(#GOTO loop#)#

    More information:
  • #COUNTCLICK#
  • #DIAGRAM#
  • #DOWNLOAD#
  • BLHTML forum  


    apache MySQL PHP No to software patents! BLHTML
    © 2003, 2010 BLHTML
    This page is created with BLHTML in 0.1099 seconds