Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 463 to 482

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=" echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
    <div class="Question">
       generateFormToken("form2"); ?>
      <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 27th September 2021 11:35 Europe/London time based on the source file dated 3rd September 2021 13:30 Europe/London time.