Changeset 134
- Timestamp:
- 06/01/2003 11:43:03 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/b2bookmarklet.php
r119 r134 2 2 /* <Bookmarklet> */ 3 3 4 $mode = "bookmarklet";4 $mode = 'bookmarklet'; 5 5 6 6 $standalone = 1; 7 require( "b2header.php");7 require('b2header.php'); 8 8 9 9 if ($user_level == 0) 10 die ("Cheatin' uh?");10 die ("Cheatin' uh?"); 11 11 12 if ( $a=="b") {12 if ('b' == $a) { 13 13 14 14 ?><html> 15 15 <head> 16 <script language="javascript" >16 <script language="javascript" type="text/javascript"> 17 17 <!-- 18 18 window.close() … … 32 32 <script type="text/javascript" language="javascript"> 33 33 <!-- 34 function preview(form) {35 var preview_date = "<?php echo date("Y-m-d H:i:s"); ?>";36 var preview_userid = "<?php echo $user_ID ?>";37 var preview_title = form.post_title.value;38 var preview_category = form.post_category.value;39 var preview_content = form.content.value;40 preview_date = escape(preview_date);41 preview_userid = escape(preview_userid);42 preview_title = escape(preview_title);43 preview_category = escape(preview_category);44 preview_content = escape(preview_content);45 window.open ("<?php echo "$siteurl/$blogfilename" ?>?preview=1&preview_date="+preview_date +"&preview_userid="+preview_userid +"&preview_title="+preview_title +"&preview_category="+preview_category +"&preview_content="+preview_content,"Preview", "location=0,menubar=1,resizable=1,scrollbars=yes,status=1,toolbar=0");46 }47 48 34 function launchupload() { 49 35 window.open ("b2upload.php", "b2upload", "width=380,height=360,location=0,menubar=0,resizable=1,scrollbars=yes,status=1,toolbar=0"); … … 55 41 <!-- 56 42 body { 57 background-image: url('<?php 58 if ($is_gecko || $is_IE) { 59 ?>../b2-img/bgbookmarklet3.gif<?php 60 } else { 61 ?>../b2-img/bgbookmarklet3.gif<?php 62 } 63 ?>'); 43 background-image: url('../b2-img/bgbookmarklet3.gif'); 64 44 background-repeat: no-repeat; 65 45 } 66 <?php 67 if (!$is_NS4) { 68 ?> 46 69 47 textarea,input,select { 70 48 background-color: transparent; 71 <?php if ($is_gecko || $is_macIE) { ?>72 background-image: url('../b2-img/bgbookmarklet3.gif');73 <?php } elseif ($is_winIE) { ?>74 49 background-color: #cccccc; 75 50 filter: alpha(opacity:80); 76 <?php } ?> 51 -moz-opacity: .8; 77 52 border-width: 1px; 78 53 border-color: #cccccc; … … 81 56 margin: 1px; 82 57 } 83 <?php if (!$is_gecko) { ?> 58 84 59 .checkbox { 85 60 background-color: #ffffff; … … 88 63 margin: 0px; 89 64 } 90 <?php } ?> 91 <?php 92 } 93 ?> 65 94 66 textarea { 95 67 font-family: Verdana, Geneva, Arial, Helvetica;
Note: See TracChangeset
for help on using the changeset viewer.