Changeset 1208 for plugins/blocNotes/inc/lib.blocNotes.php
- Timestamp:
- 06/07/09 01:18:20 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/blocNotes/inc/lib.blocNotes.php
r1183 r1208 37 37 38 38 $set = $core->blog->settings; 39 40 $notes = $core->con->select('SELECT blocNotes '. 41 'FROM '.$core->prefix.'user '. 42 'WHERE user_id = \''. 43 $core->con->escape($core->auth->userID()).'\'')->f(0); 39 44 40 45 echo '<p class="area" id="blocNotes_personal">'. … … 43 48 '</label>'. 44 49 form::textarea('blocNotes_personal_text',80,5, 45 html::escapeHTML(base64_decode( 46 $set->{'blocNotes_text_'.$core->auth->userID()}), 47 'maximal')). 50 html::escapeHTML($notes),'maximal'). 48 51 '</p>'. 49 52 '<p class="area" id="blocNotes">'. … … 66 69 if (isset($_POST['blocNotes_text'])) 67 70 { 71 # Personal notebook 72 $cur = $core->con->openCursor($core->prefix.'user'); 73 $cur->blocNotes = $_POST['blocNotes_personal_text']; 74 $cur->update('WHERE user_id = \''.$core->con->escape($core->auth->userID()).'\''); 75 68 76 $core->blog->settings->setNameSpace('blocnotes'); 69 # Bloc-Notes' text 70 $core->blog->settings->put( 71 'blocNotes_text_'.$core->auth->userID(), 72 base64_encode($_POST['blocNotes_personal_text']),'text', 73 'Bloc-Notes\' personal text',true,true); 77 # Blog-specific notebook 74 78 $core->blog->settings->put('blocNotes_text', 75 79 base64_encode($_POST['blocNotes_text']),'text',
Note: See TracChangeset
for help on using the changeset viewer.