Changeset 11084 for extensions/Copyrights
- Timestamp:
- May 28, 2011, 11:55:12 AM (14 years ago)
- Location:
- extensions/Copyrights
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Copyrights/admin.php
r10973 r11084 38 38 $CRname = ''; 39 39 $CRurl = ''; 40 $CRdesc = '';40 $CRdescr = ''; 41 41 $CRvisible = 0; 42 42 … … 46 46 $name = pwg_db_real_escape_string($_REQUEST['name']); 47 47 $url = pwg_db_real_escape_string($_REQUEST['url']); 48 $desc = pwg_db_real_escape_string($_REQUEST['desc']);48 $descr = pwg_db_real_escape_string($_REQUEST['descr']); 49 49 $visible = (isset($_REQUEST['visible']) ? 1 : 0); 50 50 $query = sprintf( … … 53 53 ("%s","%s","%s",%d) 54 54 ;', 55 COPYRIGHTS_ADMIN, $name, $url, $desc , $visible);55 COPYRIGHTS_ADMIN, $name, $url, $descr, $visible); 56 56 pwg_query($query); 57 57 } … … 70 70 $CRname = $row['name']; 71 71 $CRurl = $row['url']; 72 $CRdesc = $row['desc'];72 $CRdescr = $row['descr']; 73 73 $CRvisible = $row['visible']; 74 74 } … … 78 78 $name = pwg_db_real_escape_string($_REQUEST['name']); 79 79 $url = pwg_db_real_escape_string($_REQUEST['url']); 80 $desc = pwg_db_real_escape_string($_REQUEST['desc']);80 $descr= pwg_db_real_escape_string($_REQUEST['descr']); 81 81 $visible = (isset($_REQUEST['visible']) ? 1 : 0); 82 82 $query = sprintf( 83 83 'UPDATE %s 84 SET `name`="%s", `url`="%s", `desc `="%s", `visible`=%d84 SET `name`="%s", `url`="%s", `descr`="%s", `visible`=%d 85 85 WHERE `cr_id`=%d 86 86 ;', 87 COPYRIGHTS_ADMIN, $name, $url, $desc , $visible, $id);87 COPYRIGHTS_ADMIN, $name, $url, $descr, $visible, $id); 88 88 pwg_query($query); 89 89 } … … 113 113 FROM %s 114 114 ;', 115 COPY TIGHTS_ADMIN);115 COPYRIGHTS_ADMIN); 116 116 $result = pwg_query($query); 117 117 … … 123 123 'name' => $row['name'], 124 124 'url' => $row['url'], 125 'desc ' => $row['desc'],125 'descr' => $row['descr'], 126 126 'visible' => $row['visible'] 127 127 ) … … 138 138 $template->assign('CRname', $CRname); 139 139 $template->assign('CRurl', $CRurl); 140 $template->assign('CRdesc ', $CRdesc);140 $template->assign('CRdescr', $CRdescr); 141 141 $template->assign('CRvisible', $CRvisible); 142 142 -
extensions/Copyrights/image.php
r11076 r11084 30 30 <tr id="Copyrights_name"> 31 31 <td class="label">Copyright</td> 32 <td class="value">{$CR_INFO_NAME}</td> 32 <td class="value"> 33 <a target="_blanc" href="{$CR_INFO_URL}" title="{$CR_INFO_NAME}">{$CR_INFO_NAME}</a> 34 </td> 33 35 </tr> 34 36 <tr id="datecreate">'; 35 // "Copyright" is nog hardcoded37 // "Copyright" label is nog hardcoded - moet een @translate achter van de smarty, maar dat laat ik maar aan Johan over =P 36 38 37 39 return preg_replace($search, $replacement, $content); -
extensions/Copyrights/main.inc.php
r11075 r11084 1 1 <?php 2 2 /* 3 Plugin Name: Copyrights _TEST3 Plugin Name: Copyrights 4 4 Version: Alpha 5 5 Description: Create copyrights and assign them to your photos. … … 66 66 67 67 68 //if (script_basename() == 'picture') // Why should i want this "if"here?68 //if (script_basename() == 'picture') // Why should i want this here? 69 69 include_once(dirname(__FILE__).'/image.php'); 70 70 … … 103 103 WHERE `visible`<>0 104 104 ;', 105 COPYRIGHT _ADMIN);105 COPYRIGHTS_ADMIN); 106 106 $result = pwg_query($query); 107 107 $CRoptions = array(); … … 137 137 WHERE media_id IN (%s) 138 138 ;', 139 COPYRIGHT _MEDIA, implode(',', $collection));139 COPYRIGHTS_MEDIA, implode(',', $collection)); 140 140 pwg_query($query); 141 141 } -
extensions/Copyrights/maintain.inc.php
r11075 r11084 46 46 47 47 function plugin_activate() { 48 /*global $prefixeTable;48 global $prefixeTable; 49 49 50 $query = "50 $query = ' 51 51 SELECT COUNT(*) 52 FROM ".$prefixeTable."copyrights_admin53 ; ";52 FROM '.$prefixeTable.'copyrights_admin 53 ;'; 54 54 list($counter) = pwg_db_fetch_row(pwg_query($query)); 55 55 if (0 == $counter) { 56 56 copyrights_create_default(); 57 } */57 } 58 58 } 59 59 … … 80 80 'name' => 'Creative Commons (BY)', 81 81 'url' => 'http://creativecommons.org/licenses/by/3.0/', 82 'desc ' => 'This license lets others distribute, remix, tweak, and build82 'descr' => 'This license lets others distribute, remix, tweak, and build 83 83 upon your work, even commercially, as long as they credit you 84 84 for the original creation. This is the most accommodating of … … 90 90 'name' => 'Creative Commons (BY-SA)', 91 91 'url' => 'http://creativecommons.org/licenses/by-sa/3.0/', 92 'desc ' => 'This license lets others remix, tweak, and build upon your92 'descr' => 'This license lets others remix, tweak, and build upon your 93 93 work even for commercial purposes, as long as they credit you 94 94 and license their new creations under the identical terms. This … … 104 104 'name' => 'Creative Commons (BY-ND)', 105 105 'url' => 'http://creativecommons.org/licenses/by-nd/3.0/', 106 'desc ' => 'This license allows for redistribution, commercial and106 'descr' => 'This license allows for redistribution, commercial and 107 107 non-commercial, as long as it is passed along unchanged and in 108 108 whole, with credit to you.', … … 112 112 'name' => 'Creative Commons (BY-NC)', 113 113 'url' => 'http://creativecommons.org/licenses/by-nc/3.0/', 114 'desc ' => 'This license lets others remix, tweak, and build upon your114 'descr' => 'This license lets others remix, tweak, and build upon your 115 115 work non-commercially, and although their new works must also 116 116 acknowledge you and be non-commercial, they don’t have to … … 121 121 'name' => 'Creative Commons (BY-NC-SA)', 122 122 'url' => 'http://creativecommons.org/licenses/by-nc-sa/3.0/', 123 'desc ' => 'This license lets others remix, tweak, and build upon your123 'descr' => 'This license lets others remix, tweak, and build upon your 124 124 work non-commercially, as long as they credit you and license 125 125 their new creations under the identical terms.', … … 129 129 'name' => 'Creative Commons (BY-NC-ND)', 130 130 'url' => 'http://creativecommons.org/licenses/by-nc-nd/3.0/', 131 'desc ' => 'This license is the most restrictive of our six main licenses,131 'descr' => 'This license is the most restrictive of our six main licenses, 132 132 only allowing others to download your works and share them with 133 133 others as long as they credit you, but they can’t change them
Note: See TracChangeset
for help on using the changeset viewer.