Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

display_rsc_upload()

Description

Display hmtl form for uploading a plugin configuration (.rsc) file

Typically invoked in a plugins's setup.php file just after the form for setting individual plugin
configuration parameters.

the POST of a .rsc file. Typically the return value from handle_rsc_upload or ''.

Parameters

ColumnTypeDefaultDescription
$upload_status string string the status message (or '' if none) resulting from handling

Location

include/plugin_functions.php lines 451 to 469

Definition

 
function display_rsc_upload($upload_status)
    {
    global 
$lang;
    if (!
function_exists('json_encode')) return; // i.e. if before json support in PHP
?>
  <br />
  <h2> echo $lang['plugins-upload-title']?></h2>
   if ($upload_status!='') echo '<p>' $upload_status '</p>'?>
  <form id="form2" enctype="multipart/form-data" name="form2" method="post" action="">
    <div class="Question">
      <input type="hidden" name="MAX_FILE_SIZE" value="32768" />
      <label for="rsc_file"> echo $lang['plugins-getrsc'?></label>
      <input type="file" name="rsc_file" id="rsc_file" size=80 />
      <input type="submit" name="upload" value=" echo $lang['plugins-upload'?>" />
      <div class="clearerleft"></div>
    </div>
  </form>

    
}

This article was last updated 14th July 2020 01:35 Europe/London time based on the source file dated 2nd July 2020 09:08 Europe/London time.