PageRenderTime 161ms CodeModel.GetById 27ms RepoModel.GetById 0ms app.codeStats 0ms

/admin/new_image.php

https://github.com/aravindc/pixelpost
PHP | 502 lines | 418 code | 50 blank | 34 comment | 103 complexity | 03a24f9ede8d0850932c6046458fc0da MD5 | raw file
Possible License(s): GPL-2.0
  1. <?php
  2. // SVN file version:
  3. // $Id$
  4. if (!isset($_SESSION["pixelpost_admin"]) || $cfgrow['password'] != $_SESSION["pixelpost_admin"] || isset($_GET["_SESSION"]["pixelpost_admin"]) and $_GET["_SESSION"]["pixelpost_admin"] == $_SESSION["pixelpost_admin"] || isset($_POST["_SESSION"]["pixelpost_admin"]) and $_POST["_SESSION"]["pixelpost_admin"] == $_SESSION["pixelpost_admin"] || isset($_COOKIE["_SESSION"]["pixelpost_admin"]) and $_COOKIE["_SESSION"]["pixelpost_admin"] == $_SESSION["pixelpost_admin"])
  5. {
  6. die("Try another day!!");
  7. }
  8. //require("../includes/exifer1_5/exif.php");
  9. // if no page is specified return a new post / image upload thing
  10. if (!isset($_GET['view']) or $_GET['view'] == '')
  11. {
  12. $show_thumbnail_creation_page = false; // For default behavior this is set to 'False' you can change this to True in your addons in the new image page
  13. // save new post
  14. if (isset($_GET['x']) and $_GET['x'] == "save")
  15. {
  16. $headline = clean($_POST['headline']);
  17. $body = clean($_POST['body']);
  18. if (isset($_POST['alt_headline']))
  19. {
  20. //Obviously we would like to use the alternative language
  21. $alt_headline = clean($_POST['alt_headline']);
  22. $alt_body = clean($_POST['alt_body']);
  23. $alt_tags = clean($_POST['alt_tags']);
  24. } else
  25. {
  26. $alt_headline = "";
  27. $alt_body = "";
  28. $alt_tags = "";
  29. }
  30. $comments_settings = clean($_POST['allow_comments']);
  31. $datetime = intval($_POST['post_year']) . "-" . intval($_POST['post_month']) . "-" . intval($_POST['post_day']) . " " . intval($_POST['post_hour']) . ":" . intval($_POST['post_minute']) . ":" . date('s');
  32. $postdatefromexif = false;
  33. if ($_POST['autodate'] == 1)
  34. {
  35. $query = mysql_query("select datetime + INTERVAL " . $cfgrow['daysafterlastpost'] . " DAY from " . $pixelpost_db_prefix . "pixelpost order by datetime desc limit 1");
  36. $row = mysql_fetch_row($query);
  37. if ($row)
  38. $datetime = $row[0]; // If there is none, will default to the other value
  39. } else
  40. if ($_POST['autodate'] == 2)
  41. {
  42. $datetime = gmdate("Y-m-d H:i:s", time() + (3600 * $cfgrow['timezone']));
  43. } else
  44. if ($_POST['autodate'] == 3) // exifdate
  45. {
  46. // New, JFK: post date from EXIF
  47. // delay action to later point. We don't know the filename yet...
  48. // just set a flag so we know what to do later on
  49. $postdatefromexif = true;
  50. }
  51. ;
  52. if ($headline == "")
  53. {
  54. echo "
  55. <div id='warning'>$admin_lang_ni_missing_data</div><p/>
  56. <script type='text/javascript'>
  57. <!--
  58. document.location = '#warnings'
  59. -->
  60. </script>";
  61. exit;
  62. }
  63. $status = "no";
  64. // prepare the file
  65. if ($_FILES['userfile'] != "")
  66. {
  67. $userfile = strtolower(str_replace(" ", "_", $_FILES['userfile']['name']));
  68. $tz = $cfgrow['timezone'];
  69. if ($cfgrow['timestamp'] == 'yes')
  70. $time_stamp_r = gmdate("YmdHis", time() + (3600 * $tz)) . '_';
  71. $uploadfile = $upload_dir . $time_stamp_r . $userfile;
  72. // NEW WORKSPACE ADDED
  73. eval_addon_admin_workspace_menu('image_upload_start');
  74. if (getimagesize($_FILES['userfile']['tmp_name']))
  75. {
  76. if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile))
  77. {
  78. chmod($uploadfile, 0644);
  79. $result = check_upload($_FILES['userfile']['error']);
  80. $filnamn = strtolower($_FILES['userfile']['name']);
  81. $filnamn = $time_stamp_r . $filnamn;
  82. $filtyp = $_FILES['userfile']['type'];
  83. $filstorlek = $_FILES['userfile']['size'];
  84. $status = "ok";
  85. //Get the exif data so we can store it.
  86. // what about files that don't have exif data??
  87. include_once ('../includes/functions_exif.php');
  88. $exif_info_db = serialize_exif($uploadfile);
  89. if ($postdatefromexif == true)
  90. {
  91. // since we all ready escaped everything for database commit we have
  92. // strip the slashes before we can use the exif again.
  93. $exif_info = stripslashes($exif_info_db);
  94. $exif_result = unserialize_exif($exif_info);
  95. $exposuredatetime = $exif_result['DateTimeOriginalSubIFD'];
  96. if ($exposuredatetime != '')
  97. {
  98. list($exifyear, $exifmonth, $exifday, $exifhour, $exifmin, $exifsec) = split('[: ]', $exposuredatetime);
  99. $datetime = date("Y-m-d H:i:s", mktime($exifhour, $exifmin, $exifsec, $exifmonth, $exifday, $exifyear));
  100. } else
  101. $datetime = gmdate("Y-m-d H:i:s", time() + (3600 * $tz));
  102. }
  103. // NEW WORKSPACE ADDED
  104. eval_addon_admin_workspace_menu('image_upload_succesful');
  105. } else
  106. {
  107. // something went wrong, try to describe what
  108. if ($_FILES['userfile']['error'] != '0')
  109. $result = check_upload($_FILES['userfile']['error']);
  110. else
  111. $result = "$admin_lang_ni_upload_error ";
  112. echo "<div id='warning'>$admin_lang_error ";
  113. echo "<br/>$result";
  114. if (!is__writable($upload_dir))
  115. echo "<br/>$admin_lang_pp_img_chmod1";
  116. echo "</div><hr/>";
  117. // NEW WORKSPACE ADDED
  118. eval_addon_admin_workspace_menu('image_upload_failed');
  119. } // end move
  120. } else
  121. {
  122. // image is not an image.
  123. echo "<div id='warning'>$admin_lang_error ";
  124. echo "<br/>$admin_lang_pp_up_not_an_image";
  125. echo "</div><hr/>";
  126. }
  127. } // end prepare of file ($_FILES['userfile'] != "")
  128. // insert post in mysql
  129. $image = $filnamn;
  130. if ($status == "ok")
  131. {
  132. $query = "INSERT INTO " . $pixelpost_db_prefix . "pixelpost (datetime,headline,body,image,alt_headline,alt_body,comments,exif_info)
  133. VALUES('$datetime','$headline','$body','$image','$alt_headline','$alt_body','$comments_settings','$exif_info_db')";
  134. $result = mysql_query($query) || die("Error: " . mysql_error() . $admin_lang_ni_db_error);
  135. $theid = mysql_insert_id(); //Gets the id of the last added image to use in the next "insert"
  136. if (isset($_POST['category']))
  137. {
  138. $query_val = array();
  139. foreach ($_POST['category'] as $val)
  140. {
  141. $val = clean($val);
  142. $query_val[] = "(NULL,'$val','$theid')";
  143. }
  144. $query_st = "INSERT INTO " . $pixelpost_db_prefix . "catassoc (id,cat_id,image_id) VALUES " . implode(",", $query_val) . ";";
  145. $result = mysql_query($query_st) || die("Error: " . mysql_error());
  146. }
  147. // done
  148. // moved by Dennis to get a more consistent upload process.
  149. $to_echo = '';
  150. if ($show_thumbnail_creation_page)
  151. {
  152. $to_echo = "<div id='caption'>$admin_lang_ni_posted: $headline</div>
  153. <div class='content'>$body<br/>
  154. $datetime<br/><a href=\"" . PHP_SELF . "?view=images&id=$theid\">[$admin_lang_imgedit_edit]</a><p>";
  155. } else
  156. {
  157. if ($cfgrow['crop'] != '12c')
  158. {
  159. $host = $_SERVER['HTTP_HOST'];
  160. $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
  161. $extra = 'index.php?view=images';
  162. echo '<meta http-equiv="refresh" content="0;url=http://' . $host . $uri . "/" . $extra . '" />';
  163. }
  164. }
  165. // Check if the '12c' is selected as the crop then add 3 buttons to the page '+', '-', and 'crop'
  166. if ($cfgrow['crop'] == '12c')
  167. {
  168. $to_echo .= "$admin_lang_ni_crop_nextstep<br/>
  169. <input type='button' name='Submit1' value='" . $txt['cropimage'] . "' onclick=\"cropCheck('def','" . $filnamn . "');\"/>
  170. <input type='button' name='Submit3' value='" . $txt['smaller'] . "' onmousedown=\"cropZoom('in');\" onmouseup='stopZoom();'/>
  171. <input type='button' name='Submit4' value='" . $txt['bigger'] . "' onmousedown=\"cropZoom('out');\" onmouseup='stopZoom();'/>
  172. <br/> ";
  173. }
  174. echo $to_echo; // tag of content div still open
  175. //create thumbnail
  176. if (function_exists('gd_info'))
  177. {
  178. $gd_info = gd_info();
  179. if ($gd_info != "")
  180. {
  181. $thumbnail = $filnamn;
  182. $thumbnail = createthumbnail($thumbnail);
  183. eval_addon_admin_workspace_menu('thumb_created');
  184. // if crop is not '12c' use the oldfashioned crop
  185. if ($cfgrow['crop'] != '12c')
  186. {
  187. echo "</div><!-- end of content div -->"; // close content div
  188. } else
  189. {
  190. // set the size of the crop frame according to the uploaded image
  191. setsize_cropdiv($filnamn);
  192. $for_echo = "<img src='" . $cfgrow['imagepath'] . $filnamn . "' id='myimg'/>
  193. <div id='cropdiv'>
  194. <table width='100%' height='100%' border='1' cellpadding='0' cellspacing='0' bordercolor='#000000'>
  195. <tr><td><img src='" . $spacer . "'/></td></tr>
  196. </table></div> <!-- end of crop div -->
  197. <div id='editthumbnail'>
  198. <hidden>$admin_lang_ni_crop_background</hidden>
  199. </div><!-- end of editthumbnail id -->
  200. </div> <!-- end of content div --> ";
  201. echo $for_echo;
  202. } // end else
  203. } // gd info
  204. } // function_exists
  205. // workspace: image_uploaded
  206. eval_addon_admin_workspace_menu('image_uploaded');
  207. // save tags
  208. save_tags_new(clean($_POST['tags']), $theid);
  209. // save the alt_tags to if the variable is set
  210. if ($cfgrow['altlangfile'] != 'Off')
  211. save_tags_new(clean($_POST['alt_tags']), $theid, "alt_");
  212. // workspace: image_uploaded
  213. eval_addon_admin_workspace_menu('upload_finished');
  214. } // end status ok
  215. } // end save
  216. if (isset($status) && $status == 'ok')
  217. {
  218. unset($alt_headline, $alt_tags, $alt_body, $_POST['category'], $_POST['autodate'], $_POST['post_year'], $_POST['post_month'], $_POST['post_day'], $_POST['post_hour'], $_POST['post_minute'], $_POST['allow_comments']);
  219. }
  220. if (isset($_GET['x']) and $_GET['x'] != "save" or !isset($_GET['x']))
  221. {
  222. ?>
  223. <form method="post" action="<?php echo PHP_SELF; ?>?x=save" enctype="multipart/form-data" accept-charset="UTF-8">
  224. <div id="caption"><b><?php echo $admin_lang_new_image; ?></b></div>
  225. <div class="jcaption"><?php echo $admin_lang_ni_post_a_new_image; ?></div>
  226. <div class="content">
  227. <?php echo $admin_lang_ni_image ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  228. <input name="userfile" type="file" size="76"/><p/>
  229. <?php echo $admin_lang_ni_image_title; ?>&nbsp;&nbsp;&nbsp;
  230. <input type="text" name="headline" style="width:550px;" value="<?php if (isset($status) && $status != 'ok')
  231. echo $_POST['headline']; ?>"/><p/>
  232. <?php echo $admin_lang_ni_tags; ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  233. <input type="text" name="tags" style="width:550px;" value="<?php if (isset($status) && $status != 'ok')
  234. echo $_POST['tags']; ?>"/><br/>
  235. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $admin_lang_ni_tags_desc; ?><p/>
  236. <?php
  237. eval_addon_admin_workspace_menu('new_image_form_def_lang');
  238. echo $admin_lang_ni_select_cat;
  239. category_list_as_table(clean(isset($_POST['category'])), $cfgrow);
  240. $tz = $cfgrow["timezone"];
  241. $cur_time = gmdate("Y-m-d H:i:s", time() + (3600 * $tz));
  242. $cur_year = gmdate("Y", time() + (3600 * $tz));
  243. if (isset($_POST['autodate']))
  244. {
  245. $autodate = intval($_POST['autodate']);
  246. $selected_autodate[$autodate] = 1;
  247. } elseif (!isset($_POST['autodate']) or $_POST['autodate'] == '')
  248. {
  249. $selected_autodate[0] = '';
  250. $selected_autodate[1] = '';
  251. $selected_autodate[2] = 1;
  252. $selected_autodate[3] = '';
  253. }
  254. ?>
  255. </div>
  256. <div class='jcaption'><?php echo $admin_lang_ni_description; ?></div>
  257. <div class='content'>
  258. <?php if ($cfgrow['markdown'] == 'T')
  259. {
  260. echo $admin_lang_ni_markdown_text; ?><br/>
  261. <a href='http://daringfireball.net/projects/markdown/' title='<?php echo $admin_lang_ni_markdown_hp; ?>' target='_blank'><?php echo $admin_lang_ni_markdown_hp; ?></a>
  262. &nbsp;&nbsp;&nbsp;
  263. <a href='http://daringfireball.net/projects/markdown/basics' title='<?php echo $admin_lang_ni_markdown_element; ?>' target='_blank'><?php echo $admin_lang_ni_markdown_element; ?></a>
  264. &nbsp;&nbsp;&nbsp;
  265. <a href='http://daringfireball.net/projects/markdown/syntax' title='<?php echo $admin_lang_ni_markdown_syntax; ?>' target='_blank'><?php echo $admin_lang_ni_markdown_syntax; ?></a><?php } ?>
  266. <p/>
  267. <div style="text-align:center;">
  268. <textarea name="body" style="width:97%;height:100px;" rows="" cols=""><?php if (isset($status) && $status != 'ok')
  269. echo $_POST['body']; ?></textarea><p/>
  270. </div>
  271. </div>
  272. <div class='jcaption'>
  273. <?php echo $admin_lang_ni_datetime; ?></div>
  274. <div class='content'>
  275. <input type="radio" name="autodate" value="2" <?php if ($selected_autodate[2])
  276. echo 'checked="checked" '; ?>id="postnow"/><label for="postnow"><?php echo $admin_lang_ni_post_now . ' (~' . $cur_time . ')'; ?></label><br/>
  277. <input type="radio" name="autodate" value="1" <?php if ($selected_autodate[1])
  278. echo 'checked="checked" '; ?>id="postdayaft"/><label for="postdayaft"><?php if ($cfgrow['daysafterlastpost'] == 1)
  279. {
  280. echo $admin_lang_ni_post_one_day_after;
  281. } else
  282. {
  283. echo $admin_lang_ni_post . $cfgrow['daysafterlastpost'] . $admin_lang_ni_post_multiple_days_after;
  284. } ?></label><br/>
  285. <input type='radio' name='autodate' value='3' <?php if ($selected_autodate[3])
  286. echo 'checked="checked" '; ?>id="exifdate"/><label for="exifdate"><?php echo $admin_lang_ni_post_exif_date; ?></label><br/>
  287. <input type='radio' name='autodate' value='0' <?php if ($selected_autodate[0])
  288. echo 'checked="checked" '; ?>id="specificdate"/><label for="specificdate"><?php echo $admin_lang_ni_post_spec_date; ?></label><br/><br/>
  289. <table id="datetable">
  290. <tr>
  291. <td><?php echo $admin_lang_ni_year; ?></td><td style="width:5px;">-</td><td><?php echo $admin_lang_ni_month; ?></td><td style="width:5px;">-</td><td><?php echo $admin_lang_ni_day; ?></td><td><img src='../includes/spacer.gif' height='1' width='30' alt=""/></td><td><?php echo $admin_lang_ni_hour; ?></td><td style="width:5px;">-</td><td><?php echo $admin_lang_ni_min; ?></td>
  292. </tr>
  293. <tr><td>
  294. <select name='post_year' onchange="return ondatechange()" >
  295. <option value='<?php echo $cur_year; ?>'><?php echo $cur_year; ?></option>
  296. <?php
  297. $lc = 2002;
  298. while ($lc <= (date("Y") + 3))
  299. {
  300. echo "<option";
  301. if (isset($_POST['post_year']) and $_POST['post_year'] == $lc)
  302. echo " SELECTED";
  303. echo " value='$lc'>$lc</option>";
  304. $lc++;
  305. }
  306. ?>
  307. </select>
  308. </td>
  309. <td style="width:5px;">-</td>
  310. <td>
  311. <select name='post_month' onchange="return ondatechange()">
  312. <option value='<?php echo gmdate("m", time() + (3600 * $tz)); ?>'><?php echo gmdate("m", time() + (3600 * $tz)); ?></option>
  313. <?php
  314. $lc = 1;
  315. while ($lc <= 12)
  316. {
  317. if ($lc < 10)
  318. {
  319. $lc = "0$lc";
  320. }
  321. echo "<option";
  322. if (isset($_POST['post_month']) and $_POST['post_month'] == $lc)
  323. echo " SELECTED";
  324. echo " value='$lc'>$lc</option>";
  325. $lc++;
  326. }
  327. ?>
  328. </select>
  329. </td>
  330. <td style="width:5px;">-</td>
  331. <td>
  332. <select name='post_day' onchange="return ondatechange()">
  333. <option value='<?php echo gmdate("d", time() + (3600 * $tz)); ?>'><?php echo gmdate("d", time() + (3600 * $tz)); ?></option>
  334. <?php
  335. $lc = 1;
  336. while ($lc <= 31)
  337. {
  338. if ($lc < 10)
  339. {
  340. $lc = "0$lc";
  341. }
  342. echo "<option";
  343. if (isset($_POST['post_day']) and $_POST['post_day'] == $lc)
  344. echo " SELECTED";
  345. echo " value='$lc'>$lc</option>";
  346. $lc++;
  347. }
  348. ?>
  349. </select>
  350. </td>
  351. <td><img src='../includes/spacer.gif' height='1' width='30' alt=""/></td>
  352. <td>
  353. <select name='post_hour' onchange="return ondatechange()">
  354. <option value='<?php echo gmdate("H", time() + (3600 * $tz)); ?>'><?php echo gmdate("H", time() + (3600 * $tz)); ?></option>
  355. <?php
  356. $lc = 0;
  357. while ($lc < 24)
  358. {
  359. if ($lc < 10)
  360. {
  361. $lc = "0$lc";
  362. }
  363. echo "<option";
  364. if (isset($_POST['post_hour']) and $_POST['post_hour'] == $lc)
  365. echo " SELECTED";
  366. echo " value='$lc'>$lc</option>";
  367. $lc++;
  368. }
  369. ?>
  370. </select>
  371. </td>
  372. <td style="width:5px;">-</td>
  373. <td>
  374. <select name='post_minute' onchange="return ondatechange()">
  375. <option value='<?php echo gmdate("i", time() + (3600 * $tz)); ?>'><?php echo gmdate("i", time() + (3600 * $tz)); ?></option>
  376. <?php
  377. $lc = 0;
  378. while ($lc <= 59)
  379. {
  380. if ($lc < 10)
  381. {
  382. $lc = "0$lc";
  383. }
  384. echo "<option";
  385. if (isset($_POST['post_minute']) and $_POST['post_minute'] == $lc)
  386. echo " SELECTED";
  387. echo " value='$lc'>$lc</option>";
  388. $lc++;
  389. }
  390. ?>
  391. </select>
  392. </td></tr></table>
  393. <p/>
  394. </div>
  395. <?php
  396. // added select box for allowing comments posted for picture
  397. echo "<div class='jcaption'>$admin_lang_optn_comment_setting2</div>
  398. <div class='content'>$admin_lang_optn_cmnt_mod_txt2
  399. <select name=\"allow_comments\">";
  400. $allow_comments = (isset($_POST['allow_comments']) and strlen($_POST['allow_comments']) > 0) ? clean($_POST['allow_comments']) : $cfgrow["global_comments"];
  401. if ($allow_comments == 'A')
  402. {
  403. echo "<option selected=\"selected\" value=\"A\">$admin_lang_optn_cmnt_mod_allowed</option><option value=\"M\">$admin_lang_optn_cmnt_mod_moderation</option><option value=\"F\">$admin_lang_optn_cmnt_mod_forbidden</option>";
  404. } elseif ($allow_comments == 'M')
  405. {
  406. echo "<option value=\"A\">$admin_lang_optn_cmnt_mod_allowed</option><option selected=\"selected\" value=\"M\">$admin_lang_optn_cmnt_mod_moderation</option><option value=\"F\">$admin_lang_optn_cmnt_mod_forbidden</option>";
  407. } else
  408. {
  409. echo "<option value=\"A\">$admin_lang_optn_cmnt_mod_allowed</option><option value=\"M\">$admin_lang_optn_cmnt_mod_moderation</option><option selected=\"selected\" value=\"F\">$admin_lang_optn_cmnt_mod_forbidden</option>";
  410. }
  411. echo "</select></div>";
  412. // added for language support
  413. // Check if the language addon is enabled. If not there is no need to show these fields
  414. if ($cfgrow['altlangfile'] != 'Off')
  415. {
  416. echo "
  417. <div class='jcaption'>" . $admin_lang_ni_alt_language . "</div>
  418. <div class='content'>" . $admin_lang_ni_image_title . "&nbsp;&nbsp;&nbsp;
  419. <input type='text' name='alt_headline' style='width:550px;' /><p/>" . $admin_lang_ni_tags . "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  420. <input type='text' name='alt_tags' style='width:550px;' /><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" . $admin_lang_ni_tags_desc . "<p/>";
  421. eval_addon_admin_workspace_menu('new_image_form_alt_lang');
  422. if ($cfgrow['markdown'] == 'T')
  423. {
  424. echo "
  425. <div>" . $admin_lang_ni_markdown_text . "<br/>
  426. <a href='http://daringfireball.net/projects/markdown/' title='<?php echo $admin_lang_ni_markdown_hp;?>' target='_blank'>" . $admin_lang_ni_markdown_hp . "</a>
  427. &nbsp;&nbsp;&nbsp;
  428. <a href='http://daringfireball.net/projects/markdown/basics' title='<?php echo $admin_lang_ni_markdown_element;?>' target='_blank'>" . $admin_lang_ni_markdown_element . "</a>
  429. &nbsp;&nbsp;&nbsp;
  430. <a href='http://daringfireball.net/projects/markdown/syntax' title='<?php echo $admin_lang_ni_markdown_syntax;?>' target='_blank'>" . $admin_lang_ni_markdown_syntax . "</a>
  431. <p/>";
  432. }
  433. echo "
  434. <div style='text-align:center;'>
  435. <textarea name='alt_body' style='width:97%;height:100px;' rows='' cols=''></textarea><p/>
  436. </div>
  437. </div>";
  438. }
  439. // workspace: new_image_form
  440. eval_addon_admin_workspace_menu('new_image_form');
  441. ?>
  442. <div class='jcaption'>
  443. <?php echo $admin_lang_ni_post_entry; ?></div>
  444. <div class="content">
  445. <input type="submit" value="<?php echo $admin_lang_ni_upload; ?>" style='width:100px;font-weight:bold;'/>
  446. <a name="warnings">&nbsp;</a>
  447. </div>
  448. </form>
  449. <?php
  450. }
  451. } // end view=null
  452. ?>