1: <?php
  2: 
  3:   4:   5: 
  6: class internal_deprecations {
  7: 
  8:       9:  10:  11: 
 12:     static function PersistentObject() {
 13:         deprecated_functions::notify(gettext('Use the instantiate method instead'));
 14:     }
 15: 
 16:      17:  18:  19: 
 20:     public static function next_album() {
 21:         deprecated_functions::notify(gettext('Sort parameter options should be set instead with the setSortType() and setSortDirection() object methods at the head of your script.'));
 22:     }
 23: 
 24:      25:  26:  27: 
 28:     public static function next_image() {
 29:         deprecated_functions::notify(gettext('Sort parameter options should be set instead with the setSortType() and setSortDirection() object methods at the head of your script.'));
 30:     }
 31: 
 32:      33:  34:  35: 
 36:     public static function getSearchURL() {
 37:         deprecated_functions::notify(gettext('Pass array("albums" => array(album, album, ...)) for the object list.'));
 38:     }
 39: 
 40:      41:  42:  43: 
 44:     public static function getGalleryIndexURL() {
 45:         deprecated_functions::notify(gettext('The parameter to getGalleryIndexURL() is deprecated. Use getCustomPageURL() instead for custom pages.'));
 46:     }
 47: 
 48:      49:  50:  51: 
 52:     public static function setSortDirection() {
 53:         deprecated_functions::notify(gettext('The parameter order album::setSortDirection($what, $val) is deprecated. Use album::setSortDirection($val, $what) instead.'));
 54:     }
 55: 
 56:      57:  58:  59: 
 60:     static function getFolder() {
 61:         deprecated_functions::notify(gettext('Use the getFilename() method instead'));
 62:     }
 63: 
 64:      65:  66:  67: 
 68:     static function getImageLink() {
 69:         deprecated_functions::notify(gettext('Use the getLink() method instead'));
 70:     }
 71: 
 72:      73:  74:  75: 
 76:     static function getAlbumLink() {
 77:         deprecated_functions::notify(gettext('Use the getLink() method instead'));
 78:     }
 79: 
 80:      81:  82:  83: 
 84:     static function getAlbumSortType() {
 85:         deprecated_functions::notify(gettext('Use the getSortType() method instead'));
 86:     }
 87: 
 88:      89:  90:  91: 
 92:     static function getAlbumThumb() {
 93:         deprecated_functions::notify(gettext('Use the getThumb() method instead'));
 94:     }
 95: 
 96:      97:  98:  99: 
100:     static function setAlbumThumb() {
101:         deprecated_functions::notify(gettext('Use the setThumb() method instead'));
102:     }
103: 
104:     105: 106: 107: 
108:     static function setSubalbumSortType($sorttype) {
109:         deprecated_functions::notify(gettext('Use the setSortType() method instead'));
110:     }
111: 
112: }
113: 
114: 115: 116: 117: 
118: function printImageEXIFData() {
119:     deprecated_functions::notify(gettext('Use printImageMetadata().'));
120:     if (isImageVideo()) {
121: 
122:     } else {
123:         printImageMetadata();
124:     }
125: }
126: 
127: 128: 129: 130: 
131: function printCustomSizedImageMaxHeight($maxheight) {
132:     deprecated_functions::notify(gettext('Use printCustomSizedImageMaxSpace().'));
133:     if (getFullWidth() === getFullHeight() OR getDefaultHeight() > $maxheight) {
134:         printCustomSizedImage(getImageTitle(), null, null, $maxheight, null, null, null, null, null, null);
135:     } else {
136:         printDefaultSizedImage(getImageTitle());
137:     }
138: }
139: 
140: 141: 142: 143: 
144: function getCommentDate($format = NULL) {
145:     deprecated_functions::notify(gettext('Use getCommentDateTime().'));
146:     if (is_null($format)) {
147:         $format = DATE_FORMAT;
148:         $time_tags = array('%H', '%I', '%R', '%T', '%r', '%H', '%M', '%S');
149:         foreach ($time_tags as $tag) { 
150:             $t = strpos($format, $tag);
151:             if ($t !== false) {
152:                 $format = trim(substr($format, 0, $t));
153:             }
154:         }
155:     }
156:     global $_zp_current_comment;
157:     return myts_date($format, $_zp_current_comment['date']);
158: }
159: 
160: 161: 162: 163: 
164: function getCommentTime($format = '%I:%M %p') {
165:     deprecated_functions::notify(gettext('Use getCommentDateTime().'));
166:     global $_zp_current_comment;
167:     return myts_date($format, $_zp_current_comment['date']);
168: }
169: 
170: 171: 172: 173: 
174: function hitcounter($option = 'image', $viewonly = false, $id = NULL) {
175:     deprecated_functions::notify(gettext('Use getHitcounter().'));
176:     return @call_user_func('getHitcounter');
177: }
178: 
179: 180: 181: 182: 
183: function my_truncate_string($string, $length) {
184:     deprecated_functions::notify(gettext('Use truncate_string().'));
185:     return truncate_string($string, $length);
186: }
187: 
188: 189: 190: 191: 
192: function getImageEXIFData() {
193:     deprecated_functions::notify(gettext('Use getImageMetaData().'));
194:     global $_zp_current_image;
195:     if (is_null($_zp_current_image))
196:         return false;
197:     return $_zp_current_image->getMetaData();
198: }
199: 
200: 201: 202: 203: 
204: function getAlbumPlace() {
205:     deprecated_functions::notify(gettext('Use getAlbumLocation().'));
206:     global $_zp_current_album;
207:     if (is_object($_zp_current_album)) {
208:         return $_zp_current_album->getLocation();
209:     } else {
210:         return false;
211:     }
212: }
213: 
214: 215: 216: 217: 
218: function printAlbumPlace() {
219:     deprecated_functions::notify(gettext('Use printAlbumLocation().'));
220:     printAlbumLocation();
221: }
222: 
223: 224: 225: 226: 
227: function printEditable($context, $field, $editable = NULL, $editclass = 'unspecified', $messageIfEmpty = true, $convertBR = false, $override = false, $label = '') {
228:     deprecated_functions::notify(gettext('No longer supported.'));
229:     printField($context, $field, $convertBR, $override, $label);
230: }
231: 
232: 233: 234: 235: 
236: function rewrite_path_zenpage($rewrite = '', $plain = '') {
237:     deprecated_functions::notify(gettext('Use rewrite_path().'));
238:     return rewrite_path($rewrite, $plain);
239: }
240: 
241: 242: 243: 244: 
245: function getNumSubalbums() {
246:     deprecated_functions::notify(gettext('Use getNumAlbums().'));
247:     return getNumAlbums();
248: }
249: 
250: 251: 252: 253: 
254: function getAllSubalbums($param = NULL) {
255:     deprecated_functions::notify(gettext('Use getAllAlbums().'));
256:     return getAllAlbums($param);
257: }
258: 
259: 260: 261: 262: 
263: function addPluginScript($script) {
264:     deprecated_functions::notify(gettext('Register a “theme_head” filter.'));
265:     global $_zp_plugin_scripts;
266:     $_zp_plugin_scripts[] = $script;
267:     if (!zp_has_filter('theme_head', 'deprecated_functions::addPluginScript()')) {
268:         zp_register_filter('theme_head', 'deprecated_functions::addPluginScript()');
269:     }
270: }
271: 
272: 273: 274: 275: 
276: function zenJavascript() {
277:     deprecated_functions::notify(gettext('Use zp_apply_filter("theme_head").'));
278:     zp_apply_filter('theme_head');
279: }
280: 
281: 282: 283: 284: 
285: function normalizeColumns($albumColumns = NULL, $imageColumns = NULL) {
286:     deprecated_functions::notify(gettext('Use instead the theme options for images and albums per row.'), E_USER_NOTICE);
287:     global $_firstPageImages;
288:     setOption('albums_per_row', $albumColumns);
289:     setOption('images_per_row', $imageColumns);
290:     setThemeColumns();
291:     return $_firstPageImages;
292: }
293: 
294: 295: 296: 297: 
298: function printParentPagesBreadcrumb($before = '', $after = '') {
299:     deprecated_functions::notify(gettext('Use printZenpageItemsBreadcrumb().'));
300:     printZenpageItemsBreadcrumb($before, $after);
301: }
302: 
303: 304: 305: 306: 
307: function isMyAlbum($albumname, $action) {
308:     deprecated_functions::notify(gettext('Use instead the Album class method isMyItem().'), E_USER_NOTICE);
309:     $album = newAlbum($albumname);
310:     return $album->isMyItem($action);
311: }
312: 
313: 314: 315: 316: 
317: function checkForPassword($hint, $show) {
318:     deprecated_functions::notify(gettext('There is no need for this function as password handling is done by the core.'), E_USER_NOTICE);
319:     return false;
320: }
321: 
322: 323: 324: 325: 
326: function printAlbumMap($zoomlevel = NULL, $defaultmaptype = NULL, $width = NULL, $height = NULL, $text = NULL, $toggle = true, $id = 'googlemap', $firstPageImages = NULL, $mapselections = NULL, $addwiki = NULL, $background = NULL, $mapcontrol = NULL, $maptypecontrol = NULL, $customJS = NULL) {
327:     deprecated_functions::notify(gettext('The google-maps plugin is deprecated. Convert to GoogleMap.'));
328:     if (function_exists('printGoogleMap'))
329:         printGoogleMap($text, $id, $toggle, NULL, NULL);
330: }
331: 
332: 333: 334: 335: 
336: function printImageMap($zoomlevel = NULL, $defaultmaptype = NULL, $width = NULL, $height = NULL, $text = NULL, $toggle = true, $id = 'googlemap', $mapselections = NULL, $addwiki = NULL, $background = NULL, $mapcontrol = NULL, $maptypecontrol = NULL, $customJS = NULL) {
337:     deprecated_functions::notify(gettext('The google-maps plugin is deprecated. Convert to GoogleMap.'));
338:     if (function_exists('printGoogleMap'))
339:         printGoogleMap($text, $id, $toggle, NULL, NULL);
340: }
341: 
342: 343: 344: 345: 
346: function setupAllowedMaps($defaultmap, $allowedmaps) {
347:     deprecated_functions::notify(gettext('The google-maps plugin is deprecated. Convert to GoogleMap.'));
348: }
349: 
350: 351: 352: 353: 
354: function printPreloadScript() {
355:     deprecated_functions::notify(gettext('printPreloadScript is deprecated. It is a helper for a specific theme and should be placed within that theme’s "functions.php" script.'));
356:     global $_zp_current_image;
357:     $size = getOption('image_size');
358:     if (hasNextImage() || hasPrevImage()) {
359:         echo "<script type=\"text/javascript\">\n// <!-- <![CDATA[\n";
360:         if (hasNextImage()) {
361:             $nextimg = $_zp_current_image->getNextImage();
362:             echo "  nextimg = new Image();\n  nextimg.src = \"" . $nextimg->getSizedImage($size) . "\";\n";
363:         }
364:         if (hasPrevImage()) {
365:             $previmg = $_zp_current_image->getPrevImage();
366:             echo "  previmg = new Image();\n  previmg.src = \"" . $previmg->getSizedImage($size) . "\";\n";
367:         }
368:         echo "</script>\n\\ ]]> -->\n";
369:     }
370: }
371: 
372: 373: 374: 375: 
376: function isProtectedAlbum($album = NULL) {
377:     deprecated_functions::notify(gettext('Use the album class method <code>isProtected()</code> instead.'));
378:     global $_zp_current_album;
379:     if (is_null($album))
380:         $album = $_zp_current_album;
381:     return $album->isProtected();
382: }
383: 
384: 385: 386: 387: 
388: function getRSSHeaderLink($option, $linktext = '', $lang = '') {
389:     deprecated_functions::notify(gettext('Use the template function <code>getRSSLink()</code> instead. NOTE: While this function gets a full html link <code>getRSSLink()</code> just returns the URL.'));
390:     global $_zp_current_album;
391:     $host = html_encode($_SERVER["HTTP_HOST"]);
392:     $protocol = PROTOCOL . '://';
393:     if (empty($lang)) {
394:         $lang = getOption("locale");
395:     }
396:     switch ($option) {
397:         case "Gallery":
398:             if (getOption('RSS_album_image')) {
399:                 return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss&lang=" . $lang . "\" />\n";
400:             }
401:         case "Album":
402:             if (getOption('RSS_album_image')) {
403:                 return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss&albumtitle=" . urlencode(getAlbumTitle()) . "&albumname=" . urlencode($_zp_current_album->getFileName()) . "&lang=" . $lang . "\" />\n";
404:             }
405:         case "Collection":
406:             if (getOption('RSS_album_image')) {
407:                 return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss&albumtitle=" . urlencode(getAlbumTitle()) . "&folder=" . urlencode($_zp_current_album->getFileName()) . "&lang=" . $lang . "\" />\n";
408:             }
409:         case "Comments":
410:             if (getOption('RSS_comments')) {
411:                 return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss=comments&lang=" . $lang . "\" />\n";
412:             }
413:         case "Comments-image":
414:             if (getOption('RSS_comments')) {
415:                 return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss=comments&id=" . getImageID() . "&title=" . urlencode(getImageTitle()) . "&type=image&lang=" . $lang . "\" />\n";
416:             }
417:         case "Comments-album":
418:             if (getOption('RSS_comments')) {
419:                 return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss=comments&id=" . getAlbumID() . "&title=" . urlencode(getAlbumTitle()) . "&type=album&lang=" . $lang . "\" />\n";
420:             }
421:         case "AlbumsRSS":
422:             if (getOption('RSS_album_image')) {
423:                 return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss=comments&lang=" . $lang . "&albumsmode\" />\n";
424:             }
425:     }
426: }
427: 
428: 429: 430: 431: 
432: function generateCaptcha(&$img) {
433:     deprecated_functions::notify(gettext('Use $_zp_captcha->getCaptcha($prompt). Note that you will require updating your code to the new function.'));
434:     return $img = NULL;
435: }
436: 
437: 438: 439: 440: 
441: function printAlbumZip() {
442:     deprecated_functions::notify(gettext('Use downloadList plugin <code>printDownloadAlbumZipURL()</code>.'));
443:     global $_zp_current_album;
444:     enableExtension('downloadList', 20 | ADMIN_PLUGIN | THEME_PLUGIN, false);
445:     require_once(SERVERPATH . '/' . ZENFOLDER . '/' . PLUGIN_FOLDER . '/downloadList.php');
446:     printDownloadAlbumZipURL(gettext('Download a zip file of this album'), $_zp_current_album);
447: }
448: 
449: 450: 451: 452: 
453: function printImageDiv() {
454:     deprecated_functions::notify(gettext('Use printImageThumb().'));
455:     if (!isset($_GET['sortable'])) {
456:         echo '<a href="' . html_encode(getImageURL()) . '" title="' . html_encode(getImageTitle()) . '">';
457:     }
458:     printImageThumb(getImageTitle());
459:     if (!isset($_GET['sortable'])) {
460:         echo '</a>';
461:     }
462: }
463: 
464: 465: 466: 467: 
468: function getImageID() {
469:     deprecated_functions::notify(gettext('Use $_zp_current_image->getID().'));
470:     if (!in_context(ZP_IMAGE))
471:         return false;
472:     global $_zp_current_image;
473:     return $_zp_current_image->getID();
474: }
475: 
476: 477: 478: 479: 
480: function printImageID() {
481:     deprecated_functions::notify(gettext('Use echo “image_”.$_zp_current_image->getID().'));
482:     if (!in_context(ZP_IMAGE))
483:         return false;
484:     global $_zp_current_image;
485:     echo "image_" . getImageID();
486: }
487: 
488: 489: 490: 491: 
492: function getAlbumId() {
493:     deprecated_functions::notify(gettext('Use echo “image_”.$_zp_current_album->getID().'));
494:     global $_zp_current_album;
495:     if (is_null($_zp_current_album)) {
496:         return null;
497:     }
498:     return $_zp_current_album->getID();
499: }
500: 
501: 502: 503: 504: 
505: function resetCurrentAlbum() {
506:     deprecated_functions::notify(gettext('Just what do you expect this does?'));
507:     global $_zp_images, $_zp_current_album;
508:     $_zp_images = NULL;
509:     $_zp_current_album->images = NULL;
510:     setThemeColumns();
511: }
512: 
513: 514: 515: 516: 
517: function setAlbumCustomData($val) {
518:     deprecated_functions::notify(gettext('Use object methods.'));
519:     global $_zp_current_album;
520:     $_zp_current_album->setCustomData($val);
521:     $_zp_current_album->save();
522: }
523: 
524: 525: 526: 527: 
528: function setImageCustomData($val) {
529:     deprecated_functions::notify(gettext('Use object methods.'));
530:     Global $_zp_current_image;
531:     $_zp_current_image->setCustomData($val);
532:     $_zp_current_image->save();
533: }
534: 
535: 536: 537: 538: 
539: function getImageSortOrder() {
540:     deprecated_functions::notify(gettext('Use object methods.'));
541:     if (!in_context(ZP_IMAGE))
542:         return false;
543:     global $_zp_current_image;
544:     return $_zp_current_image->getSortOrder();
545: }
546: 
547: 548: 549: 550: 
551: function printImageSortOrder() {
552:     deprecated_functions::notify(gettext('Use echo $_zp_current_image->getSortOrder().'));
553:     if (!in_context(ZP_IMAGE))
554:         return false;
555:     echo getImageSortOrder();
556: }
557: 
558: 559: 560: 561: 
562: function getFirstImageURL() {
563:     deprecated_functions::notify('');
564:     global $_zp_current_album;
565:     if (is_null($_zp_current_album))
566:         return false;
567:     $firstimg = $_zp_current_album->getImage(0);
568:     return rewrite_path("/" . pathurlencode($_zp_current_album->name) . "/" . urlencode($firstimg->filename) . IM_SUFFIX, "/index.php?album=" . pathurlencode($_zp_current_album->name) . "&image=" . urlencode($firstimg->filename));
569: }
570: 
571: 572: 573: 574: 
575: function getLastImageURL() {
576:     deprecated_functions::notify('');
577:     global $_zp_current_album;
578:     if (is_null($_zp_current_album))
579:         return false;
580:     $lastimg = $_zp_current_album->getImage($_zp_current_album->getNumImages() - 1);
581:     return rewrite_path("/" . pathurlencode($_zp_current_album->name) . "/" . urlencode($lastimg->filename) . IM_SUFFIX, "/index.php?album=" . pathurlencode($_zp_current_album->name) . "&image=" . urlencode($lastimg->filename));
582: }
583: 
584: 585: 586: 587: 
588: function getTheme(&$zenCSS, &$themeColor, $defaultColor) {
589:     deprecated_functions::notify(gettext("If you need this function copy it to your theme’s functions.php script."));
590:     global $_zp_themeroot;
591:     $themeColor = getThemeOption('Theme_colors');
592:     $zenCSS = $_zp_themeroot . '/styles/' . $themeColor . '.css';
593:     $unzenCSS = str_replace(WEBPATH, '', $zenCSS);
594:     if (!file_exists(SERVERPATH . internalToFilesystem($unzenCSS))) {
595:         $zenCSS = $_zp_themeroot . "/styles/" . $defaultColor . ".css";
596:         return ($themeColor == '');
597:     } else {
598:         return true;
599:     }
600: }
601: 
602: 603: 604: 605: 
606: function printCaptcha($preText = '', $midText = '', $postText = '') {
607:     global $_zp_captcha;
608:     deprecated_functions::notify(gettext('use $_zp_captcha->getCaptcha() and format the results as desired.'));
609:     if ($_zp_captcha && getOption('Use_Captcha')) {
610:         $captcha = $_zp_captcha->getCaptcha(gettext("Enter CAPTCHA <strong>*</strong>"));
611:         if (isset($captcha['hidden']))
612:             echo $captcha['hidden'];
613:         echo $preText;
614:         if (isset($captcha['input'])) {
615:             echo $captcha['input'];
616:             echo $midText;
617:         }
618:         if (isset($captcha['html']))
619:             echo $captcha['html'];
620:         echo $postText;
621:     }
622: }
623: 
624: 625: 626: 627: 
628: function printField($context, $field, $convertBR = NULL, $override = false, $label = '') {
629:     deprecated_functions::notify(gettext('Front end editing is not supported. Use the property specific methods.'));
630:     if (is_null($convertBR))
631:         $convertBR = !extensionEnabled('tiny_mce');
632:     switch ($context) {
633:         case 'image':
634:             global $_zp_current_image;
635:             $object = $_zp_current_image;
636:             break;
637:         case 'album':
638:             global $_zp_current_album;
639:             $object = $_zp_current_album;
640:             break;
641:         case 'pages':
642:             global $_zp_current_zenpage_page;
643:             $object = $_zp_current_zenpage_page;
644:             break;
645:         case 'news':
646:             global $_zp_current_zenpage_news;
647:             $object = $_zp_current_zenpage_news;
648:             break;
649:         default:
650:             trigger_error(sprintf(gettext('printField() invalid function call, context %X.'), $context), E_USER_NOTICE);
651:             return false;
652:     }
653:     if (!$field) {
654:         trigger_error(sprintf(gettext('printField() invalid function call, field:%s.'), $field), E_USER_NOTICE);
655:         return false;
656:     }
657:     if (!is_object($object)) {
658:         trigger_error(gettext('printField() invalid function call, not an object.'), E_USER_NOTICE);
659:         return false;
660:     }
661:     if ($override) {
662:         $text = trim($override);
663:     } else {
664:         $text = trim(get_language_string($object->get($field)));
665:     }
666:     $text = zpFunctions::unTagURLs($text);
667: 
668:     $text = html_encodeTagged($text);
669:     if ($convertBR) {
670:         $text = str_replace("\r\n", "\n", $text);
671:         $text = str_replace("\n", "<br />", $text);
672:     }
673: 
674:     if (!empty($text))
675:         echo $label;
676:     echo $text;
677: }
678: 
679: 680: 681: 682: 
683: function printAdminToolbox($id = 'admin', $customDIV = false) {
684:     deprecated_functions::notify(gettext('This feature is now done by a "theme_body_close" filter. You can remove the function call.'));
685: }
686: 
687: 688: 689: 690: 
691: function getURL($image) {
692:     deprecated_functions::notify(gettext('Use the appropriate object method. <strong>Note:</strong> this function gives different results depending on the setting of <code>mod_rewrite</code> so which object method to use depends on what your settings were!'));
693:     return rewrite_path(pathurlencode($image->getAlbumName()) . "/" . urlencode($image->filename), "/index.php?album=" . pathurlencode($image->getAlbumName()) . "&image=" . urlencode($image->filename));
694: }
695: 
696: 697: 698: 699: 
700: function getLink($url, $text, $title = NULL, $class = NULL, $id = NULL) {
701:     deprecated_functions::notify(gettext('use getLinkHTML()'));
702:     return getLinkHTML($url, $text, $title, $class, $id);
703: }
704: 
705: 706: 707: 708: 
709: function printLink($url, $text, $title = NULL, $class = NULL, $id = NULL) {
710:     deprecated_functions::notify(gettext('use printLinkHTML()'));
711:     echo getLinkHTML($url, $text, $title, $class, $id);
712: }
713: 
714: 715: 716: 717: 718: 
719: function setPluginDomain($plugindomain) {
720:     deprecated_functions::notify(gettext('use setupDomain()'));
721:     return setupDomain($plugindomain, "plugin");
722: }
723: 
724: 725: 726: 727: 728: 
729: function setThemeDomain($themedomain) {
730:     deprecated_functions::notify(gettext('use setupDomain()'));
731:     return setupDomain($themedomain, "theme");
732: }
733: 
734: 735: 736: 737: 738: 
739: function getAlbumLinkURL($album = NULL) {
740:     deprecated_functions::notify(gettext('use getAlbumURL()'));
741:     return getAlbumURL();
742: }
743: 
744: 745: 746: 747: 748: 
749: function getImageLinkURL() {
750:     deprecated_functions::notify(gettext('use getImageURL()'));
751:     return getImageURL();
752: }
753: 
754: 755: 756: 757: 758: 
759: function printAlbumLink($text, $title, $class = NULL, $id = NULL) {
760:     deprecated_functions::notify(gettext('use printAlbumURL()'));
761:     printAlbumURL($text, $title, $class, $id);
762: }
763: 
764: 765: 766: 767: 768: 
769: function printImageLink($text, $title, $class = NULL, $id = NULL) {
770:     deprecated_functions::notify(gettext('use printImageURL()'));
771:     printImageURL($text, $title, $class, $id);
772: }
773: 
774: 775: 776: 777: 778: 
779: function printNextPageLink($text, $title = NULL, $class = NULL, $id = NULL) {
780:     deprecated_functions::notify(gettext('use printNextPageURL()'));
781:     printNextPageURL($text, $title, $class, $id);
782: }
783: 
784: 785: 786: 787: 788: 
789: function printPrevPageLink($text, $title = NULL, $class = NULL, $id = NULL) {
790:     deprecated_functions::notify(gettext('use printPrevPageURL()'));
791:     printPrevPageURL($text, $title, $class, $id);
792: }
793: 
794: 795: 796: 797: 798: 
799: function printSizedImageLink($size, $text, $title, $class = NULL, $id = NULL) {
800:     deprecated_functions::notify(gettext('use printSizedImageURL()'));
801:     printSizedImageURL($size, $text, $title, $class, $id);
802: }
803: 
804: 805: 806: 807: 808: 
809: function openedForComments() {
810:     deprecated_functions::notify(gettext("use the object’s getCommentsAllowed() method"));
811:     global $_zp_gallery_page, $_zp_current_image, $_zp_current_album, $_zp_current_zenpage_page, $_zp_current_zenpage_news;
812:     switch ($_zp_gallery_page) {
813:         case 'album.php':
814:             return $_zp_current_album->getCommentsAllowed();
815:         case 'image.php':
816:             return $_zp_current_image->getCommentsAllowed();
817:         case 'pages.php':
818:             return $_zp_current_zenpage_page->getCommentsAllowed();
819:         case 'news.php':
820:             if (is_NewsArticle()) {
821:                 $_zp_current_zenpage_news->getCommentsAllowed();
822:             }
823:     }
824:     return false;
825: }
826: 
827: 828: 829: 830: 831: 
832: function addPluginType($suffix, $objectName) {
833:     deprecated_functions::notify(gettext("use Gallery::addImageHandler()"));
834:     return Gallery::addImageHandler($suffix, $objectName);
835: }
836: 
837: 838: 839: 840: 841: 
842: function is_valid_image($filename) {
843:     deprecated_functions::notify(gettext("use Gallery::validImage()"));
844:     return Gallery::validImage($filename);
845: }
846: 
847: 848: 849: 850: 851: 
852: function is_valid_other_type($filename) {
853:     deprecated_functions::notify(gettext("use Gallery::validImageAlt()"));
854:     return Gallery::validImageAlt($filename);
855: }
856: 
857: ?>
858: