t.html templates/resman.help.html templates/room_details.html templates/subscription.list.html templates/tax.form.html templates/tax.list.html templates/unit.copy.html templates/unit.list.html templates/unit.list.xml.html templates/unit.new.html templates/unit.price.table.html templates/unit_details.html templates/user.info.show.html templates/lang.list.html templates/helpdialogue.html templates/config_image.html templates/block_units.html templates/dashboard.html templates/reservation.invoice.html reports/classes/SecurityDepositReport.class.php reports/classes/DueListReport.class.php reports/classes/AvailabilityReport.class.php reports/classes/TodayAvailabilityReport.class.php reports/classes/YearlyFinancialReport.class.php reports/classes/UnitPerfomanceReport.class.php reports/classes/CleaningListReport.class.php reports/classes/MailingListReport.class.php reports/templates/DueList.tpl.html reports/templates/SecurityDeposit.tpl.html reports/templates/Availability.tpl.html reports/templates/TodayAvailability.tpl.html reports/templates/UnitPerfomance.tpl.html reports/templates/YearlyFinancial.tpl.html reports/templates/CleaningList.tpl.html reports/templates/MailingList.tpl.html sql/uninstall.utf.sql sql/install.utf.sql sql/install.1.5.utf.sql sql/upgrade.utf.sql sql/upgrade.std.utf.sql backups/.htaccess images/dhtmlxGrid/csh_bluebooks/sort_desc.gif images/dhtmlxGrid/csh_bluebooks/line4.gif images/dhtmlxGrid/csh_bluebooks/folder.gif images/dhtmlxGrid/csh_bluebooks/minus1.gif images/dhtmlxGrid/csh_bluebooks/minus2.gif images/dhtmlxGrid/csh_bluebooks/sort_asc.gif images/dhtmlxGrid/csh_bluebooks/minus3.gif images/dhtmlxGrid/csh_bluebooks/minus4.gif images/dhtmlxGrid/csh_bluebooks/blanc.gif images/dhtmlxGrid/csh_bluebooks/minus5.gif images/dhtmlxGrid/csh_bluebooks/plus.gif images/dhtmlxGrid/csh_bluebooks/blank.gif images/dhtmlxGrid/csh_bluebooks/minus.gif images/dhtmlxGrid/csh_bluebooks/plus1.gif images/dhtmlxGrid/csh_bluebooks/plus2.gif images/dhtmlxGrid/csh_bluebooks/plus3.gif images/dhtmlxGrid/csh_bluebooks/leaf.gif images/dhtmlxGrid/csh_bluebooks/plus4.gif images/dhtmlxGrid/csh_bluebooks/line1.gif images/dhtmlxGrid/csh_bluebooks/plus5.gif images/dhtmlxGrid/csh_bluebooks/line2.gif images/dhtmlxGrid/csh_bluebooks/line3.gif images/dhtmlxGrid/sort_desc.gif images/dhtmlxGrid/sort_asc.gif images/dhtmlxGrid/blanc.gif images/dhtmlxGrid/dyn_down.gif images/dhtmlxGrid/skinD_bottom_right.gif images/dhtmlxGrid/skinC_top_right.gif images/dhtmlxGrid/blank.gif images/dhtmlxGrid/radio_chk0_dis.gif images/dhtmlxGrid/skinA_header.png images/dhtmlxGrid/skinC_header.png images/dhtmlxGrid/results.gif images/dhtmlxGrid/ar_left_abs.gif images/dhtmlxGrid/skin_light_header.png images/dhtmlxGrid/skinC_top_left.gif images/dhtmlxGrid/radio_chk1_dis.gif images/dhtmlxGrid/item_chk0.gif images/dhtmlxGrid/item_chk1.gif images/dhtmlxGrid/header_bg_60.gif images/dhtmlxGrid/red.gif images/dhtmlxGrid/folder.gif images/dhtmlxGrid/ar_left.gif images/dhtmlxGrid/minus.gif images/dhtmlxGrid/plus.gif images/dhtmlxGrid/dyn_.gif images/dhtmlxGrid/ar_right_abs.gif images/dhtmlxGrid/item_chk0_dis.gif images/dhtmlxGrid/skinB_header.png images/dhtmlxGrid/dyn_up.gif images/dhtmlxGrid/ar_right.gif images/dhtmlxGrid/skinD_header.png images/dhtmlxGrid/green.gif images/dhtmlxGrid/leaf.gif images/dhtmlxGrid/skin_modern_header.png images/dhtmlxGrid/header_bg.gif images/dhtmlxGrid/item_chk1_dis.gif images/dhtmlxGrid/radio_chk0.gif images/dhtmlxGrid/radio_chk1.gif images/dhtmlxGrid/skinD_bottom_left.gif images/dhtmlxGrid/calendar.gif images/dhtmlxGrid/calendar_dis.gif images/dhtmlxGrid/btn_close.gif images/dhtmlxGrid/imageloaderror.gif images/dhtmlxGrid/true.gif images/dhtmlxGrid/false.gif images/musicfolder.gif images/bookings.gif images/user1.png images/page.gif images/save.png images/joinbottom.gif images/trash.gif images/allcustomers_icon.gif images/denied_manager.gif images/nolines_minus.gif images/customers_icon.gif images/categories.gif images/globe.gif images/hotel.png images/hotel_disable.png images/membership.gif images/pickup.gif images/folderopen.gif images/spacer.png images/customers.png images/empty.gif images/reports.gif images/join.gif images/export_csv.png images/configuration.gif images/question.gif images/delete_row.png images/plusbottom.gif images/nolines_plus.gif images/insertrow.png images/folder.gif images/users_large.gif images/install_x.png images/optionalextras.gif images/dollar.gif images/refresh.png images/minusbottom.gif images/house.gif images/plus.gif images/customers.gif images/taxes.gif images/install.png images/cd.gif images/line.gif images/registration.png images/minus.gif images/misc.gif images/options.gif images/summarylayout.gif images/tax.gif images/featured.gif images/units.gif images/units_group.gif images/config.gif images/home.png images/imgfolder.gif images/bed.png images/calendar.gif images/insert_row.png images/import.gif images/base.gif images/manager.gif images/notification.gif images/billing.gif images/payments.gif images/book.gif images/webform.gif images/reel.gif images/list.gif images/bed_group.png images/top.png images/middle.png images/bottom.png images/backup.gif images/db_configuration.gif images/db_backup.gif images/db_reports.gif images/db_featured.gif images/db_help.gif images/db_units.gif images/db_reservations.gif images/db_customers.gif images/db_dashboard.gif images/lrarrow.gif images/youtubelogo.gif images/search_icon.gif images/priceimport.gif images/print.gif images/send_email.gif images/dhtmlxTabbar/bottom/modern/a_left.gif images/dhtmlxTabbar/bottom/modern/a_middle.gif images/dhtmlxTabbar/bottom/modern/a_right.gif images/dhtmlxTabbar/bottom/modern/p_left.gif images/dhtmlxTabbar/bottom/modern/p_middle_over.gif images/dhtmlxTabbar/bottom/modern/p_middle.gif images/dhtmlxTabbar/bottom/modern/p_right.gif images/dhtmlxTabbar/bottom/a_left.gif images/dhtmlxTabbar/bottom/a_middle.gif images/dhtmlxTabbar/bottom/a_right.gif images/dhtmlxTabbar/bottom/p_left_skos.gif images/dhtmlxTabbar/bottom/p_left.gif images/dhtmlxTabbar/bottom/p_middle.gif images/dhtmlxTabbar/bottom/p_right_skos.gif images/dhtmlxTabbar/bottom/p_right.gif images/dhtmlxTabbar/left/modern/a_left.gif images/dhtmlxTabbar/left/modern/a_middle.gif images/dhtmlxTabbar/left/modern/a_right.gif images/dhtmlxTabbar/left/modern/p_left.gif images/dhtmlxTabbar/left/modern/p_middle_over.gif images/dhtmlxTabbar/left/modern/p_middle.gif images/dhtmlxTabbar/left/modern/p_right.gif images/dhtmlxTabbar/left/a_left.gif images/dhtmlxTabbar/left/a_middle.gif images/dhtmlxTabbar/left/a_right.gif images/dhtmlxTabbar/left/p_left.gif images/dhtmlxTabbar/left/p_middle.gif images/dhtmlxTabbar/left/p_right.gif images/dhtmlxTabbar/right/modern/a_left.gif images/dhtmlxTabbar/right/modern/a_middle.gif images/dhtmlxTabbar/right/modern/a_right.gif images/dhtmlxTabbar/right/modern/p_left.gif images/dhtmlxTabbar/right/modern/p_middle_over.gif images/dhtmlxTabbar/right/modern/p_middle.gif images/dhtmlxTabbar/right/modern/p_right.gif images/dhtmlxTabbar/right/a_left.gif images/dhtmlxTabbar/right/a_middle.gif images/dhtmlxTabbar/right/a_right.gif images/dhtmlxTabbar/right/p_left.gif images/dhtmlxTabbar/right/p_middle.gif images/dhtmlxTabbar/right/p_right.gif images/dhtmlxTabbar/top/circuses/_p_middle_over.gif images/dhtmlxTabbar/top/circuses/a_left.gif images/dhtmlxTabbar/top/circuses/a_middle.gif images/dhtmlxTabbar/top/circuses/a_right.gif images/dhtmlxTabbar/top/circuses/p_left.gif images/dhtmlxTabbar/top/circuses/p_middle_over.gif images/dhtmlxTabbar/top/circuses/p_middle.gif images/dhtmlxTabbar/top/circuses/p_right.gif images/dhtmlxTabbar/top/modern/a_left.gif images/dhtmlxTabbar/top/modern/a_middle.gif images/dhtmlxTabbar/top/modern/a_right.gif images/dhtmlxTabbar/top/modern/p_left.gif images/dhtmlxTabbar/top/modern/p_middle_over.gif images/dhtmlxTabbar/top/modern/p_middle.gif images/dhtmlxTabbar/top/modern/p_right.gif images/dhtmlxTabbar/top/silver/a_left.gif images/dhtmlxTabbar/top/silver/a_middle.gif images/dhtmlxTabbar/top/silver/a_right.gif images/dhtmlxTabbar/top/silver/p_left.gif images/dhtmlxTabbar/top/silver/p_middle.gif images/dhtmlxTabbar/top/silver/p_right.gif images/dhtmlxTabbar/top/silver/sample.gif images/dhtmlxTabbar/top/with_bg/a_left_skos.gif images/dhtmlxTabbar/top/with_bg/a_left.gif images/dhtmlxTabbar/top/with_bg/a_middle.gif images/dhtmlxTabbar/top/with_bg/a_right_skos.gif images/dhtmlxTabbar/top/with_bg/a_right.gif images/dhtmlxTabbar/top/with_bg/p_left_skos.gif images/dhtmlxTabbar/top/with_bg/p_left.gif images/dhtmlxTabbar/top/with_bg/p_middle_over.gif images/dhtmlxTabbar/top/with_bg/p_middle.gif images/dhtmlxTabbar/top/with_bg/p_right_skos.gif images/dhtmlxTabbar/top/with_bg/p_right.gif images/dhtmlxTabbar/top/a_left.gif images/dhtmlxTabbar/top/a_middle.gif images/dhtmlxTabbar/top/a_right.gif images/dhtmlxTabbar/top/p_left_skos.gif images/dhtmlxTabbar/top/p_left.gif images/dhtmlxTabbar/top/p_middle.gif images/dhtmlxTabbar/top/p_right_skos.gif images/dhtmlxTabbar/top/p_right.gif images/dhtmlxTabbar/close.png images/dhtmlxTabbar/loading.gif images/dhtmlxTabbar/scrl_b.gif images/dhtmlxTabbar/scrl_l.gif images/dhtmlxTabbar/scrl_r.gif images/dhtmlxTabbar/scrl_t.gif images/dhtmlxTree/blank.gif images/dhtmlxTree/but_cut.gif images/dhtmlxTree/folderClosed.gif images/dhtmlxTree/folderOpen.gif images/dhtmlxTree/iconCheckAll.gif images/dhtmlxTree/iconCheckDis.gif images/dhtmlxTree/iconCheckGray.gif images/dhtmlxTree/iconUncheckAll.gif images/dhtmlxTree/iconUncheckDis.gif images/dhtmlxTree/leaf.gif images/dhtmlxTree/line.gif images/dhtmlxTree/line1_rtl.gif images/dhtmlxTree/line1.gif images/dhtmlxTree/line2_rtl.gif images/dhtmlxTree/line2.gif images/dhtmlxTree/line3_rtl.gif images/dhtmlxTree/line3.gif images/dhtmlxTree/line4_rtl.gif images/dhtmlxTree/line4.gif images/dhtmlxTree/lock.gif images/dhtmlxTree/minus_ar.gif images/dhtmlxTree/minus.gif images/dhtmlxTree/minus2_rtl.gif images/dhtmlxTree/minus2.gif images/dhtmlxTree/minus3_rtl.gif images/dhtmlxTree/minus3.gif images/dhtmlxTree/minus4_rtl.gif images/dhtmlxTree/minus4.gif images/dhtmlxTree/minus5_rtl.gif images/dhtmlxTree/minus5.gif images/dhtmlxTree/plus2_rtl.gif images/dhtmlxTree/plus2.gif images/dhtmlxTree/plus3_rtl.gif images/dhtmlxTree/plus3.gif images/dhtmlxTree/plus4_rtl.gif images/dhtmlxTree/plus4.gif images/dhtmlxTree/plus5_rtl.gif images/dhtmlxTree/plus5.gif images/dhtmlxTree/radio_off.gif images/dhtmlxTree/radio_on.gif lib/Date-1.4.7/Date/Calc.php lib/Date-1.4.7/Date/Human.php lib/Date-1.4.7/Date/Span.php lib/Date-1.4.7/Date/TimeZone.php lib/Date-1.4.7/Date.php lib/CreditCard/Mastercard.class.php lib/CreditCard/DinersClub.class.php lib/CreditCard/AmericanExpress.class.php lib/CreditCard/JCB.class.php lib/CreditCard/Visa.class.php lib/CreditCard/CreditCardsManager.class.php lib/CreditCard/CreditCard.class.php lib/Global/Request.class.php lib/Global/Post.class.php lib/Global/UserInput.class.php lib/Global/Cookie.class.php lib/Global/Session.class.php lib/Global/Get.class.php lib/pclzip-2-6/pclzip.lib.php lib/xtpl_php4/xtemplate.class.php lib/Filesystem.class.php lib/upload_class.php lib/Upload.php js/dhtmlxGrid/excells/dhtmlxgrid_excell_liveedit.js js/dhtmlxGrid/excells/dhtmlxgrid_excell_grid.js js/dhtmlxGrid/excells/dhtmlxgrid_excell_ra_str.js js/dhtmlxGrid/excells/dhtmlxgrid_excell_dec.js js/dhtmlxGrid/excells/dhtmlxgrid_excell_passw.js js/dhtmlxGrid/excells/dhtmlxgrid_excell_mro.js js/dhtmlxGrid/excells/dhtmlxgrid_excell_link.js js/dhtmlxGrid/excells/dhtmlxgrid_excell_time.js js/dhtmlxGrid/excells/dhtmlxgrid_excell_combo.js js/dhtmlxGrid/excells/dhtmlxgrid_excell_tree.js js/dhtmlxGrid/excells/dhtmlxgrid_excell_calendar.js js/dhtmlxGrid/excells/dhtmlxgrid_excell_cntr.js js/dhtmlxGrid/excells/dhtmlxgrid_excell_calck.js js/dhtmlxGrid/excells/dhtmlxgrid_excell_3but.js js/dhtmlxGrid/excells/dhtmlxgrid_excell_limit.js js/dhtmlxGrid/excells/dhtmlxgrid_excell_clist.js js/dhtmlxGrid/excells/dhtmlxgrid_excell_acheck.js js/dhtmlxGrid/excells/dhtmlxgrid_excell_sub_row.js js/dhtmlxGrid/excells/dhtmlxgrid_excell_wbut.js js/dhtmlxGrid/ext/dhtmlxgrid_selection.js js/dhtmlxGrid/ext/dhtmlxgrid_nxml.js js/dhtmlxGrid/ext/dhtmlxgrid_splt.js js/dhtmlxGrid/ext/dhtmlxgrid_pgn.js js/dhtmlxGrid/ext/dhtmlxgrid_filter.js js/dhtmlxGrid/ext/dhtmlxgrid_ssc.js js/dhtmlxGrid/ext/dhtmlx_extdrag.js js/dhtmlxGrid/ext/dhtmlxgrid_math.js js/dhtmlxGrid/ext/dhtmlxgrid_mcol.js js/dhtmlxGrid/ext/dhtmlxgrid_start.js js/dhtmlxGrid/ext/dhtmlxgrid_fast.js js/dhtmlxGrid/ext/dhtmlxgrid_form.js js/dhtmlxGrid/ext/dhtmlxgrid_undo.js js/dhtmlxGrid/ext/dhtmlxgrid_srnd.js js/dhtmlxGrid/ext/dhtmlxgrid_over.js js/dhtmlxGrid/ext/dhtmlxgrid_hmenu.js js/dhtmlxGrid/ext/dhtmlxgrid_drag.js js/dhtmlxGrid/calendar/img/callt.gif js/dhtmlxGrid/calendar/img/calrt.gif js/dhtmlxGrid/calendar/img/calx.gif js/dhtmlxGrid/calendar/calendar_init.js js/dhtmlxGrid/calendar/calendar.css js/dhtmlxGrid/calendar/license.txt js/dhtmlxGrid/calendar/calendar.js js/dhtmlxGrid/calendar/YAHOO.js js/dhtmlxGrid/calendar/event.js js/dhtmlxGrid/dhtmlxgridcell.js js/dhtmlxGrid/dhtmlxgrid.js js/dhtmlxGrid/dhtmlxcommon.js js/dhtmlxGrid/codebase.xml js/dhtmlxGrid/codebase_treegrid.xml js/dhtmlxGrid/dhtmlxgrid_skins.css js/dhtmlxGrid/dhtmlxcommon_debug.js js/dhtmlxGrid/dhtmlxgrid.css js/dhtmlxDataProcessor/codebase.xml js/dhtmlxDataProcessor/dhtmlxdataprocessor.js js/dhtmlxGrid/dhtmlxcalendar.css js/dhtmlxGrid/dhtmlxcalendar.js js/dhtmlxGrid/excells/dhtmlxgrid_excell_dhxcalendar.js js/dhtmlxTabbar/dhtmlxcommon.js js/dhtmlxTabbar/dhtmlxtabbar_start.js js/dhtmlxTabbar/dhtmlxtabbar.css js/dhtmlxTabbar/dhtmlxtabbar.js js/dhtmlxTree/ext/dhtmlxtree_dragin.js js/dhtmlxTree/ext/dhtmlxtree_ed.js js/dhtmlxTree/ext/dhtmlxtree_er.js js/dhtmlxTree/ext/dhtmlxtree_json.js js/dhtmlxTree/ext/dhtmlxtree_kn.js js/dhtmlxTree/ext/dhtmlxtree_lf.js js/dhtmlxTree/ext/dhtmlxtree_li.js js/dhtmlxTree/ext/dhtmlxtree_rl.js js/dhtmlxTree/ext/dhtmlxtree_sb.js js/dhtmlxTree/ext/dhtmlxtree_srnd.js js/dhtmlxTree/ext/dhtmlxtree_start.js js/dhtmlxTree/ext/dhtmlxtree_xw.js js/dhtmlxTree/dhtmlxcommon.js js/dhtmlxTree/dhtmlxtree.css js/dhtmlxTree/dhtmlxtree_extra.css js/dhtmlxTree/dhtmlxtree.js js/calendar/calendar.gif js/calendar/calendar.js js/calendar/calendar-en.js js/calendar/calendar-setup.js js/calendar/theme.css js/facebox/b.png js/facebox/bl.png js/facebox/br.png js/facebox/closelabel.gif js/facebox/facebox.css js/facebox/facebox.js js/facebox/loading.gif js/facebox/tl.png js/facebox/tr.png toolbar.resman.html.php toolbar.1.5.php toolbar.php toolbar.resman.php install.resman.php installdb.class.php uninstall.resman.php resman.xml ReportManager.class.php DtreeMenu.class.php admin.resman.php admin.resman.html.php Report.class.php price.class.php backup.class.php cron_email.php compat.joomla1.5.php module/mod_resman_search.php module/mod_resman_search.xml.new mambot/mos_resman_featured.php mambot/mos_resman_featured.xml.new CSV_prices/empty.txt reports/uploads/readme.txt ioncube_loader.zip license.txt templates/price_configuration_front_end.html css/com_resman.css #FFFFFF">arrow
TIFO-PARATIFO
DISSENTERIA
MORBILLO
SCARLATTINA
VARICELLA
INFLUENZA
TOSSE CONVULSA
2) { //getting from database the 2-letters code of language by its name $sql = "SELECT `language` FROM `#__resman_config` WHERE `language_name`='".ucfirst(strtolower($lang))."' LIMIT 1;"; $database->setQuery($sql); $lang = $database->loadResult(); } // now load the appropriate language file... $langfile = $mosConfig_absolute_path."/components/com_resman/lang/resman_".$lang.".php"; if (file_exists($langfile)) { require_once($langfile); } else { require_once($mosConfig_absolute_path."/components/com_resman/lang/resman_en.php"); } switch ($task) { case "gallery": popupgallery($id); break; case "rates": popuprates($id); break; case "availability": popupcalendar($id); break; case "__mambot": break; default: featured_defaultpage(); } function featured_defaultpage($returnhtml = true){ global $resman_config, $lang; $columnwidth = intval($resman_config["featured_columns"]); global $database, $mosConfig_live_site, $featured_useslideshow, $featured_slidedelay, $mosConfig_absolute_path; if (false == class_exists('xtemplate')){ include_once($mosConfig_absolute_path.'/administrator/components/com_resman/lib/xtpl_php4/xtemplate.class.php'); } checkDatePublished(); $sql = "SELECT featured_useslideshow,featured_use_mini,featured_contacturl,featured_slidedelay,featured_meta FROM #__resman_config WHERE id=1 LIMIT 1"; $database->setQuery($sql); $rows = $database -> loadObjectList(); $featured_useslideshow = $rows[0]->featured_useslideshow; $featured_use_mini = $rows[0]->featured_use_mini; $featured_contacturl = $rows[0]->featured_contacturl ; $featured_slidedelay = $rows[0]->featured_slidedelay; $featured_meta = $rows[0]->featured_meta; $sql = " SELECT DISTINCT #__resman_details.*, #__resman_featured.published, #__resman_featured.publish_up, #__resman_featured.publish_down, #__resman_featured.ordering FROM #__resman_details LEFT JOIN #__resman_featured ON #__resman_details.uid = #__resman_featured.uid WHERE #__resman_featured.published='1' AND #__resman_featured.publish_up < NOW() AND #__resman_featured.publish_down > NOW() AND #__resman_details.language='".$lang."' ORDER BY #__resman_featured.ordering"; $database->setQuery($sql); $rows = $database -> loadObjectList(); if ($featured_use_mini==1) { $xtpl = new XTemplate(dirname(__FILE__).'/templates/featured_properties_mini.html'); $featured_useslideshow = 0; // if the mini control is used the slide show is disabled. } else { $xtpl = new XTemplate(dirname(__FILE__).'/templates/featured_properties_large.html'); } if ($featured_contacturl!=""){ $xtpl->assign('contactFormURL',$featured_contacturl); } else { $xtpl->assign('contactFormURL','index.php?option=com_contact'); } if (!empty($rows)){ $count = 1; $columncounter = 1; foreach ($rows as $row){ $unitdetails = GetUnitDetails($row->uid); $xtpl->assign('summary',substr($unitdetails->summary,0,101)."..."); $xtpl->assign('properties',(array)$unitdetails); if ($columncounter==1) {$xtpl->assign('tablecontrol_open',"");} else {$xtpl->assign('tablecontrol_open',"");} if ($columncounter==$columnwidth) {$xtpl->assign('tablecontrol_close',"");$columncounter=0;}else {$xtpl->assign('tablecontrol_close',"");} $photourl = GetUnitPhotoFeatured($row->uid); $photocount = 0; foreach ($photourl as $photo){ if ($photocount>0){ $photourlarray = $photourlarray . "," . chr(39) . $photo->photourl . chr(39); } else { $photourlarray = chr(39).$photo->photourl.chr(39); } $photocount +=1; } if (is_array($photourl)){$photourl = $photourl[0]->photourl;} if (!empty($photourl)) { $xtpl->assign('photo',"
"); }else { $xtpl->assign('photo',""); } // stars.. $stars = ""; for ($counter=1; $counter<=$unitdetails->rating; $counter++) { $stars = $stars . ""; } $xtpl->assign('stars',$stars); $xtpl->parse('main.properties'); if ($featured_useslideshow==1) { $slideshowcode = $slideshowcode . getSlideshowCodeFeatured($photourlarray,$count); } $count +=1; $columncounter +=1; } } $xtpl->assign('slideshowcode',$slideshowcode); if ($featured_useslideshow==1) { $slideshowstarters = " "; $xtpl->assign('startslideshow',$slideshowstarters); } $xtpl->parse('main'); if ($returnhtml){ return $xtpl->text('main'); } else { $xtpl->out('main'); } return true; } function checkDatePublished(){ global $database; // now retire any that have expired... $sql = "SELECT * FROM #__resman_featured WHERE NOW()>publish_down"; $database->setQuery($sql); $rows = $database->loadObjectList(); if (is_array($rows)) { foreach ($rows as $row){ if ($rows[0]->publish_down!="0000-00-00 00:00:00"){ $sql = "UPDATE #__resman_featured SET published='0' WHERE uid = '".$database->getEscaped($row->uid)."'"; $database->setQuery($sql); if (!$database->query()) { echo "\n"; exit(); } } } } // just scan the db for units with a publish date set... $sql = "SELECT * FROM #__resman_featured WHERE publish_upNOW()"; $database->setQuery($sql); $rows = $database->loadObjectList(); if (is_array($rows)) { foreach ($rows as $row){ if ($rows[0]->publish_up!="0000-00-00 00:00:00"){ $sql = "UPDATE #__resman_featured SET published='1' WHERE uid = '".$database->getEscaped($row->uid)."'"; $database->setQuery($sql); if (!$database->query()) { echo "\n"; exit(); } } } } }