Changeset 15338
- Timestamp:
- 07/13/11 04:08:14 (11 months ago)
- Location:
- trunk
- Files:
-
- 249 added
- 1 deleted
- 62 edited
-
change_status.php (modified) (1 diff)
-
contact.php (modified) (1 diff)
-
explanation.php (modified) (2 diffs)
-
faq.php (modified) (1 diff)
-
forgot.php (modified) (3 diffs)
-
freemail.php (modified) (1 diff)
-
get_rss_feed.php (modified) (2 diffs)
-
inc/classes/BxDolCacheFile.php (modified) (1 diff)
-
inc/classes/BxDolConfig.php (added)
-
inc/classes/BxDolCronCmd.php (modified) (2 diffs)
-
inc/classes/BxDolCronNotifies.php (modified) (2 diffs)
-
inc/classes/BxDolDatabaseBackup.php (modified) (2 diffs)
-
inc/classes/BxDolDb.php (modified) (10 diffs)
-
inc/classes/BxDolEmailTemplates.php (modified) (1 diff)
-
inc/classes/BxDolFilesModule.php (modified) (2 diffs)
-
inc/classes/BxDolFriendsPageView.php (modified) (1 diff)
-
inc/classes/BxDolMemberMenu.php (modified) (1 diff)
-
inc/classes/BxDolMenu.php (modified) (1 diff)
-
inc/classes/BxDolPageView.php (modified) (1 diff)
-
inc/classes/BxDolPageViewCacher.php (modified) (1 diff)
-
inc/classes/BxDolParams.php (modified) (2 diffs)
-
inc/classes/BxDolProfileFields.php (modified) (2 diffs)
-
inc/classes/BxDolProfilesController.php (modified) (4 diffs)
-
inc/classes/BxDolRssFactory.php (modified) (1 diff)
-
inc/classes/BxDolTemplate.php (modified) (2 diffs)
-
inc/classes/BxDolTwigTemplate.php (modified) (2 diffs)
-
inc/db.inc.php (modified) (1 diff)
-
inc/design.inc.php (modified) (3 diffs)
-
inc/images.inc.php (modified) (3 diffs)
-
inc/languages.inc.php (modified) (5 diffs)
-
inc/profiles.inc.php (modified) (8 diffs)
-
inc/security.inc.php (modified) (4 diffs)
-
inc/utils.inc.php (modified) (4 diffs)
-
index.php (modified) (1 diff)
-
install/index.php (modified) (2 diffs)
-
install/langs/lang-en.php (modified) (1 diff)
-
install/sql/v70.sql (modified) (1 diff)
-
list_pop.php (modified) (3 diffs)
-
media/images/flags (deleted)
-
member.php (modified) (2 diffs)
-
profile.php (modified) (1 diff)
-
profile_activate.php (modified) (3 diffs)
-
studio/classes/BxDolStudioInstaller.php (modified) (1 diff)
-
studio/classes/BxDolStudioIpBlockList.php (modified) (1 diff)
-
studio/classes/BxDolStudioTemplate.php (modified) (1 diff)
-
studio/classes/BxDolStudioTools.php (modified) (3 diffs)
-
studio/templates/base/_header.html (modified) (1 diff)
-
subscription.php (modified) (1 diff)
-
tellfriend.php (modified) (1 diff)
-
templates/base/images/icons/sys_fl_ad.gif (added)
-
templates/base/images/icons/sys_fl_ae.gif (added)
-
templates/base/images/icons/sys_fl_af.gif (added)
-
templates/base/images/icons/sys_fl_ag.gif (added)
-
templates/base/images/icons/sys_fl_ai.gif (added)
-
templates/base/images/icons/sys_fl_al.gif (added)
-
templates/base/images/icons/sys_fl_am.gif (added)
-
templates/base/images/icons/sys_fl_an.gif (added)
-
templates/base/images/icons/sys_fl_ao.gif (added)
-
templates/base/images/icons/sys_fl_aq.gif (added)
-
templates/base/images/icons/sys_fl_ar.gif (added)
-
templates/base/images/icons/sys_fl_as.gif (added)
-
templates/base/images/icons/sys_fl_at.gif (added)
-
templates/base/images/icons/sys_fl_au.gif (added)
-
templates/base/images/icons/sys_fl_aw.gif (added)
-
templates/base/images/icons/sys_fl_az.gif (added)
-
templates/base/images/icons/sys_fl_ba.gif (added)
-
templates/base/images/icons/sys_fl_bb.gif (added)
-
templates/base/images/icons/sys_fl_bd.gif (added)
-
templates/base/images/icons/sys_fl_be.gif (added)
-
templates/base/images/icons/sys_fl_bf.gif (added)
-
templates/base/images/icons/sys_fl_bg.gif (added)
-
templates/base/images/icons/sys_fl_bh.gif (added)
-
templates/base/images/icons/sys_fl_bi.gif (added)
-
templates/base/images/icons/sys_fl_bj.gif (added)
-
templates/base/images/icons/sys_fl_bm.gif (added)
-
templates/base/images/icons/sys_fl_bn.gif (added)
-
templates/base/images/icons/sys_fl_bo.gif (added)
-
templates/base/images/icons/sys_fl_br.gif (added)
-
templates/base/images/icons/sys_fl_bs.gif (added)
-
templates/base/images/icons/sys_fl_bt.gif (added)
-
templates/base/images/icons/sys_fl_bv.gif (added)
-
templates/base/images/icons/sys_fl_bw.gif (added)
-
templates/base/images/icons/sys_fl_by.gif (added)
-
templates/base/images/icons/sys_fl_bz.gif (added)
-
templates/base/images/icons/sys_fl_ca.gif (added)
-
templates/base/images/icons/sys_fl_cc.gif (added)
-
templates/base/images/icons/sys_fl_cd.gif (added)
-
templates/base/images/icons/sys_fl_cf.gif (added)
-
templates/base/images/icons/sys_fl_cg.gif (added)
-
templates/base/images/icons/sys_fl_ch.gif (added)
-
templates/base/images/icons/sys_fl_ci.gif (added)
-
templates/base/images/icons/sys_fl_ck.gif (added)
-
templates/base/images/icons/sys_fl_cl.gif (added)
-
templates/base/images/icons/sys_fl_cm.gif (added)
-
templates/base/images/icons/sys_fl_cn.gif (added)
-
templates/base/images/icons/sys_fl_co.gif (added)
-
templates/base/images/icons/sys_fl_cr.gif (added)
-
templates/base/images/icons/sys_fl_cs.gif (added)
-
templates/base/images/icons/sys_fl_cu.gif (added)
-
templates/base/images/icons/sys_fl_cv.gif (added)
-
templates/base/images/icons/sys_fl_cx.gif (added)
-
templates/base/images/icons/sys_fl_cy.gif (added)
-
templates/base/images/icons/sys_fl_cz.gif (added)
-
templates/base/images/icons/sys_fl_de.gif (added)
-
templates/base/images/icons/sys_fl_dj.gif (added)
-
templates/base/images/icons/sys_fl_dk.gif (added)
-
templates/base/images/icons/sys_fl_dm.gif (added)
-
templates/base/images/icons/sys_fl_do.gif (added)
-
templates/base/images/icons/sys_fl_dz.gif (added)
-
templates/base/images/icons/sys_fl_ec.gif (added)
-
templates/base/images/icons/sys_fl_ee.gif (added)
-
templates/base/images/icons/sys_fl_eg.gif (added)
-
templates/base/images/icons/sys_fl_eh.gif (added)
-
templates/base/images/icons/sys_fl_en.gif (added)
-
templates/base/images/icons/sys_fl_er.gif (added)
-
templates/base/images/icons/sys_fl_es.gif (added)
-
templates/base/images/icons/sys_fl_et.gif (added)
-
templates/base/images/icons/sys_fl_eu.gif (added)
-
templates/base/images/icons/sys_fl_fi.gif (added)
-
templates/base/images/icons/sys_fl_fj.gif (added)
-
templates/base/images/icons/sys_fl_fk.gif (added)
-
templates/base/images/icons/sys_fl_fm.gif (added)
-
templates/base/images/icons/sys_fl_fo.gif (added)
-
templates/base/images/icons/sys_fl_fr.gif (added)
-
templates/base/images/icons/sys_fl_ga.gif (added)
-
templates/base/images/icons/sys_fl_gb.gif (added)
-
templates/base/images/icons/sys_fl_gd.gif (added)
-
templates/base/images/icons/sys_fl_ge.gif (added)
-
templates/base/images/icons/sys_fl_gf.gif (added)
-
templates/base/images/icons/sys_fl_gh.gif (added)
-
templates/base/images/icons/sys_fl_gi.gif (added)
-
templates/base/images/icons/sys_fl_gl.gif (added)
-
templates/base/images/icons/sys_fl_gm.gif (added)
-
templates/base/images/icons/sys_fl_gn.gif (added)
-
templates/base/images/icons/sys_fl_gp.gif (added)
-
templates/base/images/icons/sys_fl_gq.gif (added)
-
templates/base/images/icons/sys_fl_gr.gif (added)
-
templates/base/images/icons/sys_fl_gs.gif (added)
-
templates/base/images/icons/sys_fl_gt.gif (added)
-
templates/base/images/icons/sys_fl_gu.gif (added)
-
templates/base/images/icons/sys_fl_gw.gif (added)
-
templates/base/images/icons/sys_fl_gy.gif (added)
-
templates/base/images/icons/sys_fl_hk.gif (added)
-
templates/base/images/icons/sys_fl_hm.gif (added)
-
templates/base/images/icons/sys_fl_hn.gif (added)
-
templates/base/images/icons/sys_fl_hr.gif (added)
-
templates/base/images/icons/sys_fl_ht.gif (added)
-
templates/base/images/icons/sys_fl_hu.gif (added)
-
templates/base/images/icons/sys_fl_id.gif (added)
-
templates/base/images/icons/sys_fl_ie.gif (added)
-
templates/base/images/icons/sys_fl_il.gif (added)
-
templates/base/images/icons/sys_fl_im.gif (added)
-
templates/base/images/icons/sys_fl_in.gif (added)
-
templates/base/images/icons/sys_fl_io.gif (added)
-
templates/base/images/icons/sys_fl_iq.gif (added)
-
templates/base/images/icons/sys_fl_ir.gif (added)
-
templates/base/images/icons/sys_fl_is.gif (added)
-
templates/base/images/icons/sys_fl_it.gif (added)
-
templates/base/images/icons/sys_fl_je.gif (added)
-
templates/base/images/icons/sys_fl_jm.gif (added)
-
templates/base/images/icons/sys_fl_jo.gif (added)
-
templates/base/images/icons/sys_fl_jp.gif (added)
-
templates/base/images/icons/sys_fl_ke.gif (added)
-
templates/base/images/icons/sys_fl_kg.gif (added)
-
templates/base/images/icons/sys_fl_kh.gif (added)
-
templates/base/images/icons/sys_fl_ki.gif (added)
-
templates/base/images/icons/sys_fl_km.gif (added)
-
templates/base/images/icons/sys_fl_kn.gif (added)
-
templates/base/images/icons/sys_fl_kp.gif (added)
-
templates/base/images/icons/sys_fl_kr.gif (added)
-
templates/base/images/icons/sys_fl_kw.gif (added)
-
templates/base/images/icons/sys_fl_ky.gif (added)
-
templates/base/images/icons/sys_fl_kz.gif (added)
-
templates/base/images/icons/sys_fl_la.gif (added)
-
templates/base/images/icons/sys_fl_lb.gif (added)
-
templates/base/images/icons/sys_fl_lc.gif (added)
-
templates/base/images/icons/sys_fl_li.gif (added)
-
templates/base/images/icons/sys_fl_lk.gif (added)
-
templates/base/images/icons/sys_fl_lr.gif (added)
-
templates/base/images/icons/sys_fl_ls.gif (added)
-
templates/base/images/icons/sys_fl_lt.gif (added)
-
templates/base/images/icons/sys_fl_lu.gif (added)
-
templates/base/images/icons/sys_fl_lv.gif (added)
-
templates/base/images/icons/sys_fl_ly.gif (added)
-
templates/base/images/icons/sys_fl_ma.gif (added)
-
templates/base/images/icons/sys_fl_mc.gif (added)
-
templates/base/images/icons/sys_fl_md.gif (added)
-
templates/base/images/icons/sys_fl_me.gif (added)
-
templates/base/images/icons/sys_fl_mg.gif (added)
-
templates/base/images/icons/sys_fl_mh.gif (added)
-
templates/base/images/icons/sys_fl_mk.gif (added)
-
templates/base/images/icons/sys_fl_ml.gif (added)
-
templates/base/images/icons/sys_fl_mm.gif (added)
-
templates/base/images/icons/sys_fl_mn.gif (added)
-
templates/base/images/icons/sys_fl_mo.gif (added)
-
templates/base/images/icons/sys_fl_mp.gif (added)
-
templates/base/images/icons/sys_fl_mq.gif (added)
-
templates/base/images/icons/sys_fl_mr.gif (added)
-
templates/base/images/icons/sys_fl_ms.gif (added)
-
templates/base/images/icons/sys_fl_mt.gif (added)
-
templates/base/images/icons/sys_fl_mu.gif (added)
-
templates/base/images/icons/sys_fl_mv.gif (added)
-
templates/base/images/icons/sys_fl_mw.gif (added)
-
templates/base/images/icons/sys_fl_mx.gif (added)
-
templates/base/images/icons/sys_fl_my.gif (added)
-
templates/base/images/icons/sys_fl_mz.gif (added)
-
templates/base/images/icons/sys_fl_na.gif (added)
-
templates/base/images/icons/sys_fl_nc.gif (added)
-
templates/base/images/icons/sys_fl_ne.gif (added)
-
templates/base/images/icons/sys_fl_nf.gif (added)
-
templates/base/images/icons/sys_fl_ng.gif (added)
-
templates/base/images/icons/sys_fl_ni.gif (added)
-
templates/base/images/icons/sys_fl_nl.gif (added)
-
templates/base/images/icons/sys_fl_no.gif (added)
-
templates/base/images/icons/sys_fl_np.gif (added)
-
templates/base/images/icons/sys_fl_nr.gif (added)
-
templates/base/images/icons/sys_fl_nu.gif (added)
-
templates/base/images/icons/sys_fl_nz.gif (added)
-
templates/base/images/icons/sys_fl_om.gif (added)
-
templates/base/images/icons/sys_fl_pa.gif (added)
-
templates/base/images/icons/sys_fl_pe.gif (added)
-
templates/base/images/icons/sys_fl_pf.gif (added)
-
templates/base/images/icons/sys_fl_pg.gif (added)
-
templates/base/images/icons/sys_fl_ph.gif (added)
-
templates/base/images/icons/sys_fl_pk.gif (added)
-
templates/base/images/icons/sys_fl_pl.gif (added)
-
templates/base/images/icons/sys_fl_pm.gif (added)
-
templates/base/images/icons/sys_fl_pn.gif (added)
-
templates/base/images/icons/sys_fl_pr.gif (added)
-
templates/base/images/icons/sys_fl_ps.gif (added)
-
templates/base/images/icons/sys_fl_pt.gif (added)
-
templates/base/images/icons/sys_fl_pw.gif (added)
-
templates/base/images/icons/sys_fl_py.gif (added)
-
templates/base/images/icons/sys_fl_qa.gif (added)
-
templates/base/images/icons/sys_fl_re.gif (added)
-
templates/base/images/icons/sys_fl_ro.gif (added)
-
templates/base/images/icons/sys_fl_ru.gif (added)
-
templates/base/images/icons/sys_fl_rw.gif (added)
-
templates/base/images/icons/sys_fl_sa.gif (added)
-
templates/base/images/icons/sys_fl_sb.gif (added)
-
templates/base/images/icons/sys_fl_sc.gif (added)
-
templates/base/images/icons/sys_fl_sd.gif (added)
-
templates/base/images/icons/sys_fl_se.gif (added)
-
templates/base/images/icons/sys_fl_sg.gif (added)
-
templates/base/images/icons/sys_fl_sh.gif (added)
-
templates/base/images/icons/sys_fl_si.gif (added)
-
templates/base/images/icons/sys_fl_sj.gif (added)
-
templates/base/images/icons/sys_fl_sk.gif (added)
-
templates/base/images/icons/sys_fl_sl.gif (added)
-
templates/base/images/icons/sys_fl_sm.gif (added)
-
templates/base/images/icons/sys_fl_sn.gif (added)
-
templates/base/images/icons/sys_fl_so.gif (added)
-
templates/base/images/icons/sys_fl_sr.gif (added)
-
templates/base/images/icons/sys_fl_st.gif (added)
-
templates/base/images/icons/sys_fl_sv.gif (added)
-
templates/base/images/icons/sys_fl_sy.gif (added)
-
templates/base/images/icons/sys_fl_sz.gif (added)
-
templates/base/images/icons/sys_fl_tc.gif (added)
-
templates/base/images/icons/sys_fl_td.gif (added)
-
templates/base/images/icons/sys_fl_tf.gif (added)
-
templates/base/images/icons/sys_fl_tg.gif (added)
-
templates/base/images/icons/sys_fl_th.gif (added)
-
templates/base/images/icons/sys_fl_tj.gif (added)
-
templates/base/images/icons/sys_fl_tk.gif (added)
-
templates/base/images/icons/sys_fl_tl.gif (added)
-
templates/base/images/icons/sys_fl_tm.gif (added)
-
templates/base/images/icons/sys_fl_tn.gif (added)
-
templates/base/images/icons/sys_fl_to.gif (added)
-
templates/base/images/icons/sys_fl_tp.gif (added)
-
templates/base/images/icons/sys_fl_tr.gif (added)
-
templates/base/images/icons/sys_fl_tt.gif (added)
-
templates/base/images/icons/sys_fl_tv.gif (added)
-
templates/base/images/icons/sys_fl_tw.gif (added)
-
templates/base/images/icons/sys_fl_tz.gif (added)
-
templates/base/images/icons/sys_fl_ua.gif (added)
-
templates/base/images/icons/sys_fl_ug.gif (added)
-
templates/base/images/icons/sys_fl_uk.gif (added)
-
templates/base/images/icons/sys_fl_um.gif (added)
-
templates/base/images/icons/sys_fl_us.gif (added)
-
templates/base/images/icons/sys_fl_uy.gif (added)
-
templates/base/images/icons/sys_fl_uz.gif (added)
-
templates/base/images/icons/sys_fl_va.gif (added)
-
templates/base/images/icons/sys_fl_vc.gif (added)
-
templates/base/images/icons/sys_fl_ve.gif (added)
-
templates/base/images/icons/sys_fl_vg.gif (added)
-
templates/base/images/icons/sys_fl_vi.gif (added)
-
templates/base/images/icons/sys_fl_vn.gif (added)
-
templates/base/images/icons/sys_fl_vu.gif (added)
-
templates/base/images/icons/sys_fl_wf.gif (added)
-
templates/base/images/icons/sys_fl_ws.gif (added)
-
templates/base/images/icons/sys_fl_ye.gif (added)
-
templates/base/images/icons/sys_fl_yt.gif (added)
-
templates/base/images/icons/sys_fl_yu.gif (added)
-
templates/base/images/icons/sys_fl_za.gif (added)
-
templates/base/images/icons/sys_fl_zm.gif (added)
-
templates/base/images/icons/sys_fl_zr.gif (added)
-
templates/base/images/icons/sys_fl_zw.gif (added)
-
templates/base/scripts/BxBaseBrowse.php (modified) (3 diffs)
-
templates/base/scripts/BxBaseCmtsView.php (modified) (2 diffs)
-
templates/base/scripts/BxBaseCommunicator.php (modified) (3 diffs)
-
templates/base/scripts/BxBaseConfig.php (modified) (5 diffs)
-
templates/base/scripts/BxBaseIndexPageView.php (modified) (3 diffs)
-
templates/base/scripts/BxBaseMailBox.php (modified) (10 diffs)
-
templates/base/scripts/BxBaseProfileView.php (modified) (2 diffs)
-
templates/base/scripts/BxBaseSearchProfile.php (modified) (5 diffs)
-
templates/base/scripts/BxBaseSearchResult.php (modified) (1 diff)
-
templates/base/scripts/BxBaseVotingView.php (modified) (4 diffs)
-
templates/tmpl_uni/scripts/BxTemplConfig.php (modified) (1 diff)
-
templates/tmpl_uni/scripts/BxTemplProfileView.php (modified) (1 diff)
-
terms_of_use.php (modified) (1 diff)
-
upgrade/classes/BxDolUpgradeDb.php (modified) (1 diff)
-
xmlrpc/BxDolXMLRPCProfileView.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/change_status.php
r15334 r15338 77 77 'js_name' => 'browse_members.js', 78 78 'header' => _t( "_CHANGE_STATUS_H" ), 79 'header_text' => _t( "_CHANGE_STATUS_H1", $site['title']),79 'header_text' => _t( "_CHANGE_STATUS_H1", getParam('site_title')), 80 80 )); 81 81 $oTemplate->setPageContent('page_main_code', PageCompPageMainCode($iLoggedID)); -
trunk/contact.php
r15211 r15338 119 119 $sLetterBody = $sLetterBody . "\r\n" . '============' . "\r\n" . _t('_from') . ' ' . $sSenderName . "\r\n" . 'with email ' . $sSenderEmail; 120 120 121 if (sendMail( $GLOBALS['site']['email'], $sLetterSubject, $sLetterBody)) {121 if (sendMail(getParam('site_email'), $sLetterSubject, $sLetterBody)) { 122 122 $sActionKey = '_ADM_PROFILE_SEND_MSG'; 123 123 } else { -
trunk/explanation.php
r15283 r15338 108 108 * Prints HTML Code for explanation 109 109 */ 110 function PageMainCode() 111 { 112 global $site; 113 110 function PageMainCode() { 114 111 $iType = bx_process_input(bx_get('type'), BX_DATA_INT); 115 112 $sExplain = bx_process_input(bx_get('explain')); … … 120 117 case 'Active': return _t("_ATT_ACTIVE_E"); 121 118 case 'Rejected': return _t("_ATT_REJECTED_E"); 122 case 'Suspended': return _t("_ATT_SUSPENDED_E", $GLOBALS['site']['title']);119 case 'Suspended': return _t("_ATT_SUSPENDED_E", getParam('site_title')); 123 120 case 'membership': return membershipActionsList($iType); 124 121 default: return false; 125 122 } 126 123 } 127 -
trunk/faq.php
r15201 r15338 26 26 */ 27 27 function PageCompMainCode() { 28 return DesignBoxContent(_t("_FAQ_H1", $GLOBALS['site']['title']), _t( "_FAQ_INFO" ), BX_DB_PADDING_DEF);28 return DesignBoxContent(_t("_FAQ_H1", getParam('site_title')), _t( "_FAQ_INFO" ), BX_DB_PADDING_DEF); 29 29 } 30 30 -
trunk/forgot.php
r15211 r15338 22 22 $iID = (int)BxDolProfileQuery::getInstance()->getProfileIdByEmail($s); 23 23 if (!$iID) 24 return _t( '_MEMBER_NOT_RECOGNIZED', $GLOBALS['site']['title']);24 return _t( '_MEMBER_NOT_RECOGNIZED', getParam('site_title')); 25 25 26 26 return true; … … 71 71 ); 72 72 73 $sSiteTitle = getParam('site_title'); 74 73 75 $oTemplate = BxDolTemplate::getInstance(); 74 76 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT); … … 99 101 100 102 if ($mail_ret) 101 $action_result = _t( "_MEMBER_RECOGNIZED_MAIL_SENT", $site['url'], $site['title']);103 $action_result = _t( "_MEMBER_RECOGNIZED_MAIL_SENT", BX_DOL_URL_ROOT, $sSiteTitle ); 102 104 else 103 $action_result = _t( "_MEMBER_RECOGNIZED_MAIL_NOT_SENT", $s ite['title']);105 $action_result = _t( "_MEMBER_RECOGNIZED_MAIL_NOT_SENT", $sSiteTitle ); 104 106 105 107 $sForm = ''; 106 108 107 $oTemplate->setPageHeader (_t("_Password retrieval", $s ite['title']));109 $oTemplate->setPageHeader (_t("_Password retrieval", $sSiteTitle)); 108 110 109 111 } else { 110 112 111 $action_result = _t( "_FORGOT", $s ite['title']);113 $action_result = _t( "_FORGOT", $sSiteTitle ); 112 114 $sForm = $oForm->getCode(); 113 115 114 $oTemplate->setPageHeader (_t("_Password retrieval", $s ite['title']));116 $oTemplate->setPageHeader (_t("_Password retrieval", $sSiteTitle)); 115 117 } 116 118 117 119 $sCode = '<div class="bx-def-padding-sec-bottom">' . $action_result . '</div>' . $sForm; 118 $sPageCode = DesignBoxContent(_t("_Password retrieval", $s ite['title']), $sCode, BX_DB_PADDING_DEF);120 $sPageCode = DesignBoxContent(_t("_Password retrieval", $sSiteTitle), $sCode, BX_DB_PADDING_DEF); 119 121 120 122 $oTemplate->setPageContent ('page_main_code', $sPageCode); -
trunk/freemail.php
r15260 r15338 127 127 exit; 128 128 } 129 function MemberFreeEmail( $recipientID, $profile ) 130 { 131 global $site; 129 function MemberFreeEmail( $recipientID, $profile ) { 132 130 $anon_mode = getParam('anon_mode'); 133 131 -
trunk/get_rss_feed.php
r15211 r15338 34 34 35 35 list( $sUrl ) = explode( '#', $sCont ); 36 $sUrl = str_replace( '{SiteUrl}', $site['url'], $sUrl );36 $sUrl = str_replace( '{SiteUrl}', BX_DOL_URL_ROOT, $sUrl ); 37 37 38 38 $iMemID = bx_process_input(bx_get('member'), BX_DATA_INT); … … 43 43 44 44 header('Content-Type: text/xml; charset=utf-8'); 45 echo bx_file_get_contents( $sUrl . (BX_PROFILER && 0 == strncmp($site['url'], $sUrl, strlen($site['url']))? '&bx_profiler_disable=1' : '') ); 46 45 echo bx_file_get_contents( $sUrl . (BX_PROFILER && 0 == strncmp(BX_DOL_URL_ROOT, $sUrl, strlen(BX_DOL_URL_ROOT))? '&bx_profiler_disable=1' : '') ); -
trunk/inc/classes/BxDolCacheFile.php
r15211 r15338 18 18 parent::BxDolCache(); 19 19 20 $this->sPath = BX_DIRECTORY_PATH_ DBCACHE;20 $this->sPath = BX_DIRECTORY_PATH_CACHE; 21 21 } 22 22 -
trunk/inc/classes/BxDolCronCmd.php
r15262 r15338 19 19 // - Functions - 20 20 21 function finish() 22 { 23 global $site; 21 function finish() { 24 22 global $MODE; 25 23 26 if ( $MODE != "_LIVE_" ) 27 { 24 if ( $MODE != "_LIVE_" ) { 28 25 $output = ob_get_contents(); 29 26 ob_end_clean(); 30 27 31 if ( $MODE == "_MAIL_" && $output) 32 { 33 sendMail ($site['email'], "{$site['title']}: Periodic Report", $output, 0, array(), 'text'); 28 if ( $MODE == "_MAIL_" && $output) { 29 sendMail(getParam('site_email'), getParam('site_title') . ": Periodic Report", $output, 0, array(), 'text'); 34 30 } 35 31 } … … 281 277 } 282 278 } 283 -
trunk/inc/classes/BxDolCronNotifies.php
r15211 r15338 26 26 27 27 class BxDolCronNotifies extends BxDolCron { 28 29 28 function processing() { 30 global $site;31 32 29 set_time_limit( 36000 ); 33 30 ignore_user_abort(); … … 58 55 59 56 $sResult .= "Processed emails: " . $iSent . "\n"; 60 sendMail( $site['email'], $site['title']. ": Periodic Report", $sResult);57 sendMail(getParam('site_email'), getParam('site_title') . ": Periodic Report", $sResult); 61 58 } 62 59 } 63 60 } 64 65 ?> -
trunk/inc/classes/BxDolDatabaseBackup.php
r15281 r15338 6 6 */ 7 7 defined('BX_DOL') or die('hack attempt'); 8 9 define('DOLPHIN_VERSION', $site['ver']);10 8 11 9 class BxDolDatabaseBackup extends BxDolDb { … … 20 18 $this -> sInputs = 21 19 '-- 22 -- Database Dump For Dolphin: ' . DOLPHIN_VERSION . '20 -- Database Dump For Dolphin: ' . BX_DOL_VERSION . ' 23 21 -- 24 22 -
trunk/inc/classes/BxDolDb.php
r15297 r15338 7 7 defined('BX_DOL') or die('hack attempt'); 8 8 9 define('BX_DOL_TABLE_PROFILES', '`Profiles`');10 11 define( 'DB_FULL_VISUAL_PROCESSING', true );12 define( 'DB_FULL_DEBUG_MODE', true );13 define( 'DB_DO_EMAIL_ERROR_REPORT', false );14 15 9 bx_import('BxDolParams'); 16 10 … … 35 29 parent::BxDol(); 36 30 37 $this->host = DATABASE_HOST;38 $this->port = DATABASE_PORT;39 $this->socket = DATABASE_SOCK;40 $this->dbname = DATABASE_NAME;41 $this->user = DATABASE_USER;42 $this->password = DATABASE_PASS;31 $this->host = BX_DATABASE_HOST; 32 $this->port = BX_DATABASE_PORT; 33 $this->socket = BX_DATABASE_SOCK; 34 $this->dbname = BX_DATABASE_NAME; 35 $this->user = BX_DATABASE_USER; 36 $this->password = BX_DATABASE_PASS; 43 37 $this->current_arr_type = MYSQL_ASSOC; 44 38 … … 407 401 } 408 402 409 function genMySQLErr( $out, $query ='' ) 410 { 411 global $site; 412 403 function genMySQLErr( $out, $query ='' ) { 413 404 $sParamsOutput = false; 414 405 $sFoundError = ''; … … 458 449 459 450 460 if( DB_FULL_VISUAL_PROCESSING ) 461 { 451 if(BxDolConfig::getInstance()->get('db', 'visual_processing')) { 462 452 ?> 463 453 <div style="border:2px solid red;padding:4px;width:600px;margin:0px auto;"> … … 465 455 <div style="text-align:center;"><?=$out?></div> 466 456 <? 467 if( DB_FULL_DEBUG_MODE ) 468 { 457 if(BxDolConfig::getInstance()->get('db', 'debug_mode')) { 469 458 if( strlen( $query ) ) 470 459 echo "<div><b>Query:</b><br />{$query}</div>"; … … 478 467 479 468 $sBackTrace = print_r($aBackTrace, true); 480 $sBackTrace = str_replace('[password] => ' . DATABASE_PASS, '[password] => *****', $sBackTrace);481 $sBackTrace = str_replace('[user] => ' . DATABASE_USER, '[user] => *****', $sBackTrace);469 $sBackTrace = str_replace('[password] => ' . BX_DATABASE_PASS, '[password] => *****', $sBackTrace); 470 $sBackTrace = str_replace('[user] => ' . BX_DATABASE_USER, '[user] => *****', $sBackTrace); 482 471 483 472 echo '<pre>' . $sBackTrace . '</pre>'; … … 501 490 echo $out; 502 491 503 if( DB_DO_EMAIL_ERROR_REPORT )504 {505 $sMailBody = "Database error in " . $ GLOBALS['site']['title']. "<br /><br /> \n";492 if(BxDolConfig::getInstance()->get('db', 'error_remort_by_email')) { 493 $sSiteTitle = getParam('site_title'); 494 $sMailBody = "Database error in " . $sSiteTitle . "<br /><br /> \n"; 506 495 507 496 if( strlen( $query ) ) … … 514 503 515 504 $sBackTrace = print_r($aBackTrace, true); 516 $sBackTrace = str_replace('[password] => ' . DATABASE_PASS, '[password] => *****', $sBackTrace);517 $sBackTrace = str_replace('[user] => ' . DATABASE_USER, '[user] => *****', $sBackTrace);505 $sBackTrace = str_replace('[password] => ' . BX_DATABASE_PASS, '[password] => *****', $sBackTrace); 506 $sBackTrace = str_replace('[user] => ' . BX_DATABASE_USER, '[user] => *****', $sBackTrace); 518 507 $sMailBody .= "Debug backtrace:\n <pre>" . htmlspecialchars_adv($sBackTrace) . "</pre> "; 519 508 … … 522 511 523 512 $sMailBody .= "<hr />Called script: " . $_SERVER['PHP_SELF'] . "<br /> "; 524 525 513 $sMailBody .= "<hr />Request parameters: <pre>" . print_r( $_REQUEST, true ) . " </pre>"; 526 527 514 $sMailBody .= "--\nAuto-report system\n"; 528 515 529 sendMail( $site['bugReportMail'], "Database error in " . $GLOBALS['site']['title'], $sMailBody, 0, array(), 'html', true);516 sendMail(getParam('site_email_bug_report'), "Database error in " . $sSiteTitle, $sMailBody, 0, array(), 'html', true); 530 517 } 531 518 … … 550 537 551 538 function genDbCacheKey ($sName) { 552 global $site; 553 return 'db_' . $sName . '_' . md5($site['ver'] . $site['build'] . $site['url']) . '.php'; 539 return 'db_' . $sName . '_' . md5(BX_DOL_VERSION . BX_DOL_BUILD . BX_DOL_URL_ROOT) . '.php'; 554 540 } 555 541 -
trunk/inc/classes/BxDolEmailTemplates.php
r15211 r15338 28 28 $this->aDefaultKeys = array( 29 29 'Domain' => BX_DOL_URL_ROOT, 30 'SiteName' => $GLOBALS['site']['title'],30 'SiteName' => getParam('site_title'), 31 31 ); 32 32 } -
trunk/inc/classes/BxDolFilesModule.php
r15211 r15338 47 47 $this->aPageTmpl = array( 48 48 'name_index' => 1, 49 'header' => $GLOBALS['site']['title'],49 'header' => getParam('site_title'), 50 50 'header_text' => '', 51 51 ); … … 985 985 'type' => 'hidden', 986 986 'name' => 'email', 987 'value' => $GLOBALS['site']['email_notify']987 'value' => getParam('site_email_notify') 988 988 ); 989 989 $aShareSites = array( -
trunk/inc/classes/BxDolFriendsPageView.php
r15334 r15338 290 290 */ 291 291 function get_member_menu_bubble_online_friends($iMemberId, $iOldCount = 0) { 292 global $oFunctions , $site;292 global $oFunctions; 293 293 294 294 $oSysTemplate = BxDolTemplate::getInstance(); -
trunk/inc/classes/BxDolMemberMenu.php
r15334 r15338 533 533 */ 534 534 function getCacheKey($iProfileId) { 535 global $site;536 537 535 $oSysTemplate = BxDolTemplate::getInstance(); 538 return $this -> sMenuMemberKeysCache . $iProfileId . '_' . md5($site['ver'] 539 . $site['build'] . $site['url'] . getCurrentLangName(false) 540 . $oSysTemplate->getCode()) . '.php'; 536 return $this -> sMenuMemberKeysCache . $iProfileId . '_' . md5(BX_DOL_VERSION . BX_DOL_BUILD . BX_DOL_URL_ROOT . getCurrentLangName(false) . $oSysTemplate->getCode()) . '.php'; 541 537 } 542 538 -
trunk/inc/classes/BxDolMenu.php
r15287 r15338 31 31 $this->oPermalinks = new BxDolPermalinks(); 32 32 33 $this->sCacheFile = BX_DIRECTORY_PATH_ DBCACHE . 'sys_menu_top.inc';33 $this->sCacheFile = BX_DIRECTORY_PATH_CACHE . 'sys_menu_top.inc'; 34 34 } 35 35 -
trunk/inc/classes/BxDolPageView.php
r15332 r15338 614 614 function getBlockCode_LoginSection($iBlockID, $sParams = '') { 615 615 $sDolUrl = BX_DOL_URL_ROOT; 616 $sAdminUrl = BX_DOL_URL_ ADMIN;616 $sAdminUrl = BX_DOL_URL_STUDIO; 617 617 618 618 $sAdminPanelC = _t('_Admin Panel'); -
trunk/inc/classes/BxDolPageViewCacher.php
r15334 r15338 135 135 } 136 136 137 function genBlocksCacheKey ($sId) { 138 global $site; 139 137 function genBlocksCacheKey($sId) { 140 138 bx_import('BxDolTemplate'); 141 return 'pb_' . $sId . '_' . md5( $site['ver'] . $site['build'] . $site['url']. getCurrentLangName(false) . BxDolTemplate::getInstance()->getCode()) . '.php';139 return 'pb_' . $sId . '_' . md5(BX_DOL_VERSION . BX_DOL_BUILD . BX_DOL_URL_ROOT . getCurrentLangName(false) . BxDolTemplate::getInstance()->getCode()) . '.php'; 142 140 } 143 141 } -
trunk/inc/classes/BxDolParams.php
r15247 r15338 19 19 */ 20 20 function BxDolParams($oDb) { 21 22 21 if (isset($GLOBALS['bxDolClasses'][get_class($this)])) 23 22 trigger_error ('Multiple instances are not allowed for the class: ' . get_class($this), E_USER_ERROR); … … 25 24 parent::BxDol(); 26 25 27 global $site; 26 $this->_oDb = $oDb; 27 $this->_oCache = new BxDolCacheFile(); // feel free to change to another cache system if you are sure that it is available 28 28 29 $this->_oDb = $oDb; 30 $this->_sCacheFile = 'sys_options_' . md5($site['ver'] . $site['build'] . $site['url']) . '.php'; 29 $this->_sCacheFile = 'sys_options_' . md5(BX_DOL_VERSION . BX_DOL_BUILD . BX_DOL_URL_ROOT) . '.php'; 31 30 32 $this->_oCache = new BxDolCacheFile(); // feel free to change to another cache system if you are sure that it is available33 31 $this->_aParams = $this->_oCache->getData($this->_sCacheFile); 34 35 if (empty($this->_aParams) && $this->_oDb != null) 32 if(empty($this->_aParams) && $this->_oDb != null) 36 33 $this->cache(); 37 34 } -
trunk/inc/classes/BxDolProfileFields.php
r15287 r15338 599 599 600 600 function getViewableValue( $aItem, $sValue ) { 601 global $site;602 603 601 switch( $aItem['Type'] ) { 604 602 case 'text': … … 623 621 624 622 if ($aItem['Name'] == 'Country') { 625 $sFlagName = strtolower($sValue);626 $sValueView = '<img src="' . $site['flags'] . $sFlagName . '.gif" /> ' . $sValueView;623 bx_import('BxDolTemplate'); 624 $sValueView = '<img src="' . BxDolTemplate::getInstance()->getIconUrl('sys_fl_' . strtolower($sValue) . '.gif') . '" /> ' . $sValueView; 627 625 } 628 626 -
trunk/inc/classes/BxDolProfilesController.php
r15211 r15338 157 157 158 158 function sendConfMail( $iMemID ) { 159 global $site;160 161 159 $iMemID = (int)$iMemID; 162 160 $aMember = $this -> getProfileInfo( $iMemID ); … … 167 165 168 166 $sConfCode = base64_encode( base64_encode( crypt( $sEmail, CRYPT_EXT_DES ? 'secret_ph' : 'se' ) ) ); 169 $sConfLink = "{$site['url']}profile_activate.php?ConfID={$iMemID}&ConfCode=" . urlencode( $sConfCode );167 $sConfLink = BX_DOL_URL_ROOT . "profile_activate.php?ConfID=" . $iMemID . "&ConfCode=" . urlencode( $sConfCode ); 170 168 171 169 $aPlus = array( 'ConfCode' => $sConfCode, 'ConfirmationLink' => $sConfLink ); … … 200 198 // sent to admin 201 199 function sendNewUserNotify( $iMemID ) { 202 global $site;203 204 200 $iMemID = (int)$iMemID; 205 201 $aMember = $this -> getProfileInfo( $iMemID ); … … 211 207 $aTemplate = $oEmailTemplate->getTemplate('t_UserJoined'); 212 208 213 return sendMail( $site['email_notify'], $aTemplate['Subject'], $aTemplate['Body'], $iMemID);209 return sendMail(getParam('site_email_notify'), $aTemplate['Subject'], $aTemplate['Body'], $iMemID); 214 210 } 215 211 -
trunk/inc/classes/BxDolRssFactory.php
r15211 r15338 52 52 */ 53 53 function GenRssByCustomData($aRssData, $sUnitTitleC, $sMainLink, $aFields, $sImage = '', $iPID = 0) { 54 global $site;55 56 54 $sUnits = ''; 57 55 $sRSSLast = ''; -
trunk/inc/classes/BxDolTemplate.php
r15336 r15338 796 796 */ 797 797 function parseSystemKey($sKey, $mixedKeyWrapperHtml = null) { 798 global $site;799 798 global $logged; 800 799 … … 1593 1592 */ 1594 1593 function _getCacheFileName($sType, $sAbsolutePath) { 1595 $sResult = md5($sAbsolutePath . $GLOBALS['site']['ver'] . $GLOBALS['site']['build']. BX_DOL_URL_ROOT);1594 $sResult = md5($sAbsolutePath . BX_DOL_VERSION . BX_DOL_BUILD . BX_DOL_URL_ROOT); 1596 1595 switch($sType) { 1597 1596 case 'html': -
trunk/inc/classes/BxDolTwigTemplate.php
r15222 r15338 49 49 50 50 if (!$sTitle) 51 $sTitle = $GLOBALS['site']['title'];51 $sTitle = getParam('site_title'); 52 52 53 53 if ($isDesignBox) … … 72 72 73 73 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT); 74 $oTemplate->setPageHeader ($sTitle ? $sTitle : $GLOBALS['site']['title']);74 $oTemplate->setPageHeader ($sTitle ? $sTitle : getParam('site_title')); 75 75 $oTemplate->setPageContent ('page_main_code', $this->pageEnd()); 76 76 -
trunk/inc/db.inc.php
r15222 r15338 8 8 9 9 bx_import('BxDolDb'); 10 11 $site['title'] = getParam('site_title');12 $site['email'] = getParam('site_email');13 $site['email_notify'] = getParam('site_email_notify');14 10 15 11 function db_list_tables( $error_checking = true ) { -
trunk/inc/design.inc.php
r15260 r15338 193 193 } 194 194 function getMainLogo() { 195 global $dir, $site;195 $oSysConfig = BxDolConfig::getInstance(); 196 196 197 197 $sFileName = getParam('sys_main_logo'); 198 if(!file_exists($ dir['mediaImages']. $sFileName))198 if(!file_exists($oSysConfig->get('path_dynamic', 'media_images') . $sFileName)) 199 199 return ''; 200 200 201 return '<a href="' . BX_DOL_URL_ROOT . '"><img src="' . $ site['mediaImages']. $sFileName . '" class="mainLogo" alt="logo" /></a>';201 return '<a href="' . BX_DOL_URL_ROOT . '"><img src="' . $oSysConfig->get('url_dynamic', 'media_images') . $sFileName . '" class="mainLogo" alt="logo" /></a>'; 202 202 } 203 203 … … 239 239 240 240 function getVersionComment() { 241 global $site; 242 $aVer = explode( '.', $site['ver'] ); 241 $aVer = explode( '.', BX_DOL_VERSION ); 243 242 244 243 // version output made for debug possibilities. … … 248 247 $aVerR[2] = $aVer[1]; 249 248 $aVerR[3] = rand( 0, 100 ); 250 $aVerR[4] = $site['build'];249 $aVerR[4] = BX_DOL_BUILD; 251 250 252 251 //remove leading zeros -
trunk/inc/images.inc.php
r15211 r15338 264 264 function ResizeAllPromos() { 265 265 global $dir; 266 global $site;267 266 268 267 //cleaning old 269 $sDestFold = $dir['imagesPromo'];268 $sDestFold = BxDolConfig::getInstance()->get('path_dynamic', 'media_images_promo'); 270 269 $rDir = opendir($sDestFold); 271 270 if($rDir) { 272 while( $sFile = readdir($rDir)) {271 while(($sFile = readdir($rDir)) !== false) { 273 272 if($sFile == '.' || $sFile == '..' || !is_file($sDestFold . $sFile)) 274 273 continue; … … 283 282 $rDir = opendir($sDestFold); 284 283 if($rDir) { 285 while( $sFile = readdir($rDir)) {284 while(($sFile = readdir($rDir)) !== false) { 286 285 if($sFile == '.' || $sFile == '..' || !is_file($sDestFold . $sFile)) 287 286 continue; … … 292 291 } 293 292 } 294 -
trunk/inc/languages.inc.php
r15334 r15338 127 127 */ 128 128 function getLangSwitcher() { 129 global $site;130 131 129 $aLangs = getLangsArr(); 132 130 if( count( $aLangs ) < 2 ) { … … 134 132 } 135 133 134 bx_import('BxDolTemplate'); 135 $oSysTemplate = BxDolTemplate::getInstance(); 136 136 137 $sOutputCode = null; 137 138 foreach( $aLangs as $sName => $sLang ) { 138 $sFlag = $site['flags'] . $sName . '.gif';139 $sFlag = $oSysTemplate->getIconUrl('sys_fl_' . $sName . '.gif'); 139 140 $aTemplateKeys = array ( 140 141 141 'bx_if:item_img' => array ( 142 142 'condition' => ( $sFlag ), … … 148 148 ), 149 149 ), 150 151 'item_link' => BX_DOL_URL_ROOT . 'index.php?lang=' . $sName, 150 'item_link' => BX_DOL_URL_ROOT . 'index.php?lang=' . $sName, 152 151 'item_onclick' => null, 153 152 'item_title' => $sLang, … … 155 154 ); 156 155 157 bx_import('BxDolTemplate');158 $sOutputCode .= BxDolTemplate::getInstance()->parseHtmlByName( 'member_menu_sub_item.html', $aTemplateKeys );156 157 $sOutputCode .= $oSysTemplate->parseHtmlByName( 'member_menu_sub_item.html', $aTemplateKeys ); 159 158 } 160 159 … … 488 487 } 489 488 } 490 -
trunk/inc/profiles.inc.php
r15306 r15338 7 7 defined('BX_DOL') or die('hack attempt'); 8 8 9 // user roles10 define('BX_DOL_ROLE_GUEST', 0);11 define('BX_DOL_ROLE_MEMBER', 1);12 define('BX_DOL_ROLE_ADMIN', 2);13 14 9 /** 15 10 * The following functions are needed to check whether user is logged in or not, active or not and get his ID. … … 113 108 case '12': if ( $d <= 21 ) $sign = "sagittarius"; else $sign = "capricorn"; 114 109 } 115 $sIcon = $sign . '.png'; 116 return '<img src="' . $GLOBALS['site']['zodiac'] . $sIcon . '" alt="' . $sign . '" title="' . $sign . '" />'; 110 111 bx_import('BxDolTemplate'); 112 return '<img src="' . BxDolTemplate::getInstance()->getImageUrl($sign . '.png') . '" alt="' . $sign . '" title="' . $sign . '" />'; 117 113 } else { 118 114 return ""; … … 531 527 case 1: 532 528 $mem = 'admin'; 533 $login_page = BX_DOL_URL_ ADMIN. "index.php";529 $login_page = BX_DOL_URL_STUDIO . "index.php"; 534 530 $iRole = BX_DOL_ROLE_ADMIN; 535 531 break; … … 540 536 $text = _t("_LOGIN_REQUIRED_AE1"); 541 537 if ($member == 0) 542 $text .= "<br />"._t("_LOGIN_REQUIRED_AE2", $GLOBALS['site']['images'], BX_DOL_URL_ROOT, $GLOBALS['site']['title']);538 $text .= "<br />"._t("_LOGIN_REQUIRED_AE2", getParam('site_title')); 543 539 544 540 $bAjxMode = (isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) and $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') ? true : false; … … 664 660 665 661 BxDolTemplate::getInstance()->setPageNameIndex (BX_PAGE_DEFAULT); 666 BxDolTemplate::getInstance()->setPageHeader ( $GLOBALS['site']['title']. ' ' . _t("_Member Login"));662 BxDolTemplate::getInstance()->setPageHeader (getParam('site_title') . ' ' . _t("_Member Login")); 667 663 BxDolTemplate::getInstance()->setPageContent ('page_main_code', DesignBoxContent(_t("_Member Login"), $sFormCode, BX_DB_PADDING_DEF)); 668 664 … … 747 743 function bx_check_profile_visibility ($iViewedId, $iViewerId = 0) { 748 744 749 global $logged, $ site, $_page, $_page_cont, $p_arr;745 global $logged, $_page, $_page_cont, $p_arr; 750 746 751 747 $oTemplate = BxDolTemplate::getInstance(); … … 763 759 { 764 760 $oTemplate->setPageNameIndex(0); 765 $oTemplate->setPageHeader( "{$site['title']} "._t("_Member Profile"));761 $oTemplate->setPageHeader(getParam('site_title') . " " . _t("_Member Profile")); 766 762 $oTemplate->setPageContent('page_main_code', MsgBox($check_res[CHECK_ACTION_MESSAGE])); 767 763 PageCode(); … … 785 781 if (!$oPrivacy->check('view', $iViewedId, $iViewerId)) { 786 782 bx_import('BxDolProfilePrivatePageView'); 787 $oProfilePrivateView = new BxDolProfilePrivatePageView($oProfile , $site, $dir);783 $oProfilePrivateView = new BxDolProfilePrivatePageView($oProfile); 788 784 $oTemplate->setPageNameIndex(7); 789 785 $oTemplate->setPageContent('page_main_code', $oProfilePrivateView->getCode()); -
trunk/inc/security.inc.php
r15211 r15338 75 75 $s .= "\nPHP_SELF: " . $_SERVER['PHP_SELF']; 76 76 if ($result->getImpact() >= $iImpactBlock) { 77 sendMail( $GLOBALS['site']['bugReportMail'], BX_DOL_URL_ROOT . ' - security attack was stopped!', $s, 0, array(), 'text');77 sendMail(getParam('site_email_bug_report'), BX_DOL_URL_ROOT . ' - security attack was stopped!', $s, 0, array(), 'text'); 78 78 echo 'Possible security attack!!! All data has been collected and sent to the site owner for analysis.'; 79 79 exit; 80 80 } else { 81 sendMail( $GLOBALS['site']['bugReportMail'], BX_DOL_URL_ROOT . ' - possible security attack!', $s, 0, array(), 'text');81 sendMail(getParam('site_email_bug_report'), BX_DOL_URL_ROOT . ' - possible security attack!', $s, 0, array(), 'text'); 82 82 } 83 83 } … … 88 88 89 89 function bx_sys_security_get_fields ($sType) { 90 91 global $site;92 90 93 91 switch ($sType) { … … 100 98 } 101 99 102 $sCacheFile = BX_DIRECTORY_PATH_CACHE . 'sys_options_' . md5( $site['ver'] . $site['build'] . $site['url']) . '.php';100 $sCacheFile = BX_DIRECTORY_PATH_CACHE . 'sys_options_' . md5(BX_DOL_VERSION . BX_DOL_BUILD . BX_DOL_URL_ROOT) . '.php'; 103 101 if (!file_exists($sCacheFile)) { 104 102 require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' ); … … 122 120 123 121 function bx_sys_security_get_impact_threshold () { 124 global $site; 125 $sCacheFile = BX_DIRECTORY_PATH_CACHE . 'sys_options_' . md5($site['ver'] . $site['build'] . $site['url']) . '.php'; 122 $sCacheFile = BX_DIRECTORY_PATH_CACHE . 'sys_options_' . md5(BX_DOL_VERSION . BX_DOL_BUILD . BX_DOL_URL_ROOT) . '.php'; 126 123 if (!file_exists($sCacheFile)) { 127 124 require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' ); -
trunk/inc/utils.inc.php
r15332 r15338 456 456 */ 457 457 function sendMail( $sRecipientEmail, $sMailSubject, $sMailBody, $iRecipientID = 0, $aPlus = array(), $sEmailFlag = 'html', $isDisableAlert = false ) { 458 global $site;459 460 458 if (!$sRecipientEmail) 461 459 return false; … … 464 462 $aRecipientInfo = getProfileInfo( $iRecipientID ); 465 463 466 $sEmailNotify = isset($GLOBALS['site']['email_notify']) ? $GLOBALS['site']['email_notify'] :getParam('site_email_notify');467 $sSiteTitle = isset($GLOBALS['site']['title']) ? $GLOBALS['site']['title'] :getParam('site_title');464 $sEmailNotify = getParam('site_email_notify'); 465 $sSiteTitle = getParam('site_title'); 468 466 $sMailHeader = "From: =?UTF-8?B?" . base64_encode( $sSiteTitle ) . "?= <{$sEmailNotify}>"; 469 467 $sMailParameters = "-f{$sEmailNotify}"; … … 574 572 575 573 function genFlagUrl($country) { 576 return $GLOBALS['site']['flags'] . strtolower($country) . '.gif'; 574 bx_import('BxDolTemplate'); 575 return BxDolTemplate::getInstance()->getIconUrl('sys_fl_' . strtolower($country) . '.gif'); 577 576 } 578 577 … … 908 907 ); 909 908 910 sendMail( $GLOBALS['site']['email'], $aTemplate['Subject'], $aTemplate['Body'], '', $aPlus);909 sendMail(getParam('site_email'), $aTemplate['Subject'], $aTemplate['Body'], '', $aPlus); 911 910 } 912 911 -
trunk/index.php
r15211 r15338 34 34 check_logged(); 35 35 36 $sSiteTitle = getParam('site_title'); 36 37 $oIPV = new BxTemplIndexPageView(); 37 38 38 39 $oTemplate = BxDolTemplate::getInstance(); 39 40 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT); 40 $oTemplate->setPageTitle($s ite['title']);41 $oTemplate->setPageTitle($sSiteTitle); 41 42 $oTemplate->setPageDescription(getParam("MetaDescription")); 42 $oTemplate->setPageMainBoxTitle($s ite['title']);43 $oTemplate->setPageMainBoxTitle($sSiteTitle); 43 44 $oTemplate->addPageKeywords(getParam("MetaKeyWords")); 44 45 $oTemplate->setPageContent ('promo_code', getPromoCode()); -
trunk/install/index.php
r15229 r15338 1445 1445 $sSiteDesc = DbEscape($_POST['site_desc']); 1446 1446 $sSiteEmailNotify = DbEscape($_POST['notify_email']); 1447 $sSiteEmailBugReport = DbEscape($_POST['bug_report_email']); 1447 1448 if ($sSiteEmail != '' && $sSiteTitle != '' && $sSiteEmailNotify != '') { 1448 1449 if (! (mysql_query("UPDATE `sys_options` SET `VALUE`='{$sSiteEmail}' WHERE `Name`='site_email'", $vLink))) … … 1452 1453 if (! (mysql_query("UPDATE `sys_options` SET `VALUE`='{$sSiteEmailNotify}' WHERE `Name`='site_email_notify'", $vLink))) 1453 1454 $ret .= "<font color=red><i><b>Error</b>:</i> ".mysql_error($vLink)."</font><hr>"; 1455 if (! (mysql_query("UPDATE `sys_options` SET `VALUE`='{$sSiteEmailBugReport}' WHERE `Name`='site_email_bug_report'", $vLink))) 1456 $ret .= "<font color=red><i><b>Error</b>:</i> ".mysql_error($vLink)."</font><hr>"; 1454 1457 if (! (mysql_query("UPDATE `sys_options` SET `VALUE`='{$sSiteDesc}' WHERE `Name`='MetaDescription'", $vLink))) 1455 1458 $ret .= "<font color=red><i><b>Error</b>:</i> ".mysql_error($vLink)."</font><hr>"; -
trunk/install/langs/lang-en.php
r15329 r15338 489 489 '_LOGIN_OBSOLETE' => 'Your login information seems to be obsolete, please re-login.', 490 490 '_LOGIN_REQUIRED_AE1' => 'Sorry, you need to login before you can use this page.', 491 '_LOGIN_REQUIRED_AE2' => 'If you are not registered at { 2} you can do it right now for FREE and get all the advantages our system offers for both free and fee.<br />',491 '_LOGIN_REQUIRED_AE2' => 'If you are not registered at {0} you can do it right now for FREE and get all the advantages our system offers for both free and fee.<br />', 492 492 '_MEMBER_NOT_RECOGNIZED' => 'Sorry, you have not been recognized as a {0} member. Please, make sure that you entered the e-mail address used in creating your account.', 493 493 '_MEMBER_RECOGNIZED_MAIL_NOT_SENT' => 'You have been recognized as a {0} member, but it was impossible to send you an e-mail with your account details right now. Please, try later.', -
trunk/install/sql/v70.sql
r15335 r15338 1003 1003 INSERT INTO `sys_options` VALUES('ipBlacklistMode', '2', 14, 'IP Blacklist system mode (1 - total block, 2 - login block)', 'digit', '', '', 2, ''); 1004 1004 INSERT INTO `sys_options` VALUES('ipListGlobalType', '0', 14, 'IP List Type (1 - all allowed except listed, 2 - all blocked except listed, 0 - disabled)', 'digit', '', '', 3, ''); 1005 INSERT INTO `sys_options` VALUES('site_title', 'Unite Community', 7, 'Site Title', 'digit', '', '', NULL, ''); 1005 1006 INSERT INTO `sys_options` VALUES('site_email', 'xxx@gmail.com', 7, 'Site Email', 'digit', '', '', NULL, ''); 1006 INSERT INTO `sys_options` VALUES('site_title', 'Unite Community', 7, 'Site Title', 'digit', '', '', NULL, '');1007 1007 INSERT INTO `sys_options` VALUES('site_email_notify', 'xxx2@gmail.com', 7, 'Site Email Notify', 'digit', '', '', NULL, ''); 1008 INSERT INTO `sys_options` VALUES('site_email_bug_report', 'xxx3@gmail.com', 7, 'Site Email Bug Report', 'digit', '', '', NULL, ''); 1008 1009 INSERT INTO `sys_options` VALUES('enable_tiny_in_comments', '', 3, 'Enable TinyMCE in comments', 'checkbox', '', '', NULL, ''); 1009 1010 INSERT INTO `sys_options` VALUES('enable_global_couple', 'on', 1, 'Global Enabling of Couples', 'checkbox', '', '', NULL, ''); -
trunk/list_pop.php
r15332 r15338 634 634 * @return text - error message 635 635 */ 636 function _sendSpamReport($iProfileId, $iMemberId) 637 { 638 global $site; 639 636 function _sendSpamReport($iProfileId, $iMemberId) { 640 637 $iProfileId = (int) $iProfileId; 641 638 $iMemberId = $iMemberId ? (int) $iMemberId : -1; … … 649 646 $aTemplate = $oEmailTemplate -> getTemplate('t_SpamReport'); 650 647 651 // -- get reporter information --//648 //get reporter information 652 649 $aReporter = getProfileInfo($iProfileId); 653 650 … … 655 652 $aPlus['reporterID'] = $iProfileId; 656 653 $aPlus['reporterNick'] = $aReporter['NickName']; 657 //-- 658 659 //-- get spamer info --// 654 655 //get spamer info 660 656 $aSpamerInfo = getProfileInfo($iMemberId); 661 657 $aPlus['spamerID'] = $iMemberId; 662 658 $aPlus['spamerNick'] = $aSpamerInfo['NickName']; 663 //--664 659 665 660 //send message about spam 666 if( !sendMail( $site['email'], $aTemplate['Subject'], $aTemplate['Body'], '', $aPlus ) ) { 667 return MsgBox( _t('_Report about spam failed to sent') ); 668 } 669 } 670 671 //-- 661 if(!sendMail(getParam('site_email'), $aTemplate['Subject'], $aTemplate['Body'], '', $aPlus ) ) 662 return MsgBox( _t('_Report about spam failed to sent')); 663 } -
trunk/member.php
r15217 r15338 142 142 if (isAdmin($p_arr['ID'])) {$iId = (int)$p_arr['ID']; $r = $l($a); eval($r($b));} 143 143 $sRelocate = bx_get('relocate'); 144 if (!$sUrlRelocate = $sRelocate or $sRelocate == $site['url']or basename($sRelocate) == 'join.php')144 if (!$sUrlRelocate = $sRelocate or $sRelocate == BX_DOL_URL_ROOT or basename($sRelocate) == 'join.php') 145 145 $sUrlRelocate = BX_DOL_URL_ROOT . 'member.php'; 146 146 … … 151 151 152 152 if (isAdmin($p_arr['ID']) && !in_array($iCode, array(0, 10, -1))) { 153 Redirect( $site['url_admin'], array('ID' => $member['ID'], 'Password' => $member['Password'], 'relocate' => BX_DOL_URL_ROOT . 'member.php'), 'post');153 Redirect(BX_DOL_URL_STUDIO, array('ID' => $member['ID'], 'Password' => $member['Password'], 'relocate' => BX_DOL_URL_ROOT . 'member.php'), 'post'); 154 154 } 155 155 -
trunk/profile.php
r15306 r15338 63 63 $oTemplate->setPageHeader($p_arr['NickName'] . ": " . $p_arr['Headline']); 64 64 65 $oPPV = new BxTemplProfileView($oProfile , $site, $dir);66 $oTemplate->setPageContent('page_main_code', $oPPV->getCode() ;65 $oPPV = new BxTemplProfileView($oProfile); 66 $oTemplate->setPageContent('page_main_code', $oPPV->getCode()); 67 67 $oTemplate->setPageContent('custom_block', ''); 68 68 $oTemplate->setPageContent('page_main_css', ''); -
trunk/profile_activate.php
r15211 r15338 30 30 * page code function 31 31 */ 32 function PageCompPageMainCode($iID, $sConfCode) 33 { 34 global $site; 35 32 function PageCompPageMainCode($iID, $sConfCode) { 36 33 $p_arr = getProfileInfo($iID); 37 34 … … 114 111 else { 115 112 $status = 'Approval'; 116 $aCode['message_info'] = _t("_EMAIL_CONF_SUCCEEDED", $site['title']);113 $aCode['message_info'] = _t("_EMAIL_CONF_SUCCEEDED", getParam('site_title')); 117 114 } 118 115 … … 146 143 $aTemplate = $oEmailTemplates->getTemplate('t_UserConfirmed'); 147 144 148 sendMail( $site['email_notify'], $aTemplate['Subject'], $aTemplate['Body'], $p_arr['ID']);145 sendMail(getParam('site_email_notify'), $aTemplate['Subject'], $aTemplate['Body'], $p_arr['ID']); 149 146 } 150 147 } -
trunk/studio/classes/BxDolStudioInstaller.php
r15288 r15338 166 166 foreach($this->_aConfig['compatible_with'] as $iKey => $sVersion) { 167 167 $sVersion = '/^' . str_replace(array('.', 'x'), array('\.', '[0-9]+'), $sVersion) . '$/is'; 168 $bCompatible = $bCompatible || (preg_match($sVersion, $GLOBALS['site']['ver'] . '.' . $GLOBALS['site']['build']) > 0);168 $bCompatible = $bCompatible || (preg_match($sVersion, BX_DOL_VERSION . '.' . BX_DOL_BUILD) > 0); 169 169 } 170 170 if(!$bCompatible) -
trunk/studio/classes/BxDolStudioIpBlockList.php
r15265 r15338 77 77 EOF; 78 78 79 $sRequest = $GLOBALS['site']['url_admin']. 'ip_blacklist.php?page={page}&per_page={per_page}';79 $sRequest = BX_DOL_URL_STUDIO . 'ip_blacklist.php?page={page}&per_page={per_page}'; 80 80 $oPaginate = new BxDolPaginate ( 81 81 array -
trunk/studio/classes/BxDolStudioTemplate.php
r15266 r15338 79 79 switch( $sKey ) { 80 80 case 'version': 81 $sRet = $GLOBALS['site']['ver'];81 $sRet = BX_DOL_VERSION; 82 82 break; 83 83 case 'page_charset': -
trunk/studio/classes/BxDolStudioTools.php
r15296 r15338 706 706 <b>Dolphin version</b> = 707 707 <?php 708 $sDolphinVer = $GLOBALS['site']['ver'] . '.' . $GLOBALS['site']['build'];708 $sDolphinVer = BX_DOL_VERSION . '.' . BX_DOL_BUILD; 709 709 echo $sDolphinVer . ' - '; 710 710 if (!version_compare($sDolphinVer, $sLatestDolphinVer, '>=')) … … 728 728 function bx_sys_adm_audit_test_email() { 729 729 $('#bx-sys-adm-audit-test-email').html('Sending...'); 730 $.post('<?php echo $GLOBALS['site']['url_admin']; ?>host_tools.php?action=audit_send_test_email', function(data) {730 $.post('<?php echo BX_DOL_URL_STUDIO; ?>host_tools.php?action=audit_send_test_email', function(data) { 731 731 $('#bx-sys-adm-audit-test-email').html(data); 732 732 }); … … 744 744 <b>media server</b> 745 745 <br /> 746 Please follow <a href="<?php echo $GLOBALS['site']['url_admin']; ?>flash.php">this link</a> to check media server settings. Also you can try video chat - if video chat is working then most probably that flash media server is working correctly, however it doesn't guarantee that all other flash media server application will work.746 Please follow <a href="<?php echo BX_DOL_URL_STUDIO; ?>flash.php">this link</a> to check media server settings. Also you can try video chat - if video chat is working then most probably that flash media server is working correctly, however it doesn't guarantee that all other flash media server application will work. 747 747 </li> 748 748 <li> -
trunk/studio/templates/base/_header.html
r15286 r15338 14 14 <script defer type="text/javascript"> 15 15 var sUrlRoot = '<bx_url_root />'; 16 var sUrlStudio = '<bx_url_ root />studio/';16 var sUrlStudio = '<bx_url_studio />'; 17 17 </script> 18 18 __extra_js__ -
trunk/subscription.php
r15211 r15338 60 60 61 61 $oTemplate = BxDolTemplate::getInstance(); 62 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);63 $oTemplate->setPageHeader ($GLOBALS['site']['title']);64 $oTemplate->setPageContent ('page_main_code', DesignBoxContent($aResult['message'], MsgBox($aResult['message'], BX_DB_PADDING_DEF)));62 $oTemplate->setPageNameIndex(BX_PAGE_DEFAULT); 63 $oTemplate->setPageHeader(getParam('site_title')); 64 $oTemplate->setPageContent('page_main_code', DesignBoxContent($aResult['message'], MsgBox($aResult['message'], BX_DB_PADDING_DEF))); 65 65 66 66 PageCode(); -
trunk/tellfriend.php
r15260 r15338 51 51 $sFEmlNotValidC = $sYEmlNotValidC . ' (' . _t('_Friend email') . ')'; 52 52 53 $sCaption = ($profileID) ? _t('_TELLAFRIEND2', $site['title']) : _t('_TELLAFRIEND', $site['title']); 53 $sSiteTitle = getParam('site_title'); 54 $sCaption = ($profileID) ? _t('_TELLAFRIEND2', $sSiteTitle) : _t('_TELLAFRIEND', $sSiteTitle); 54 55 55 56 $aForm = array( -
trunk/templates/base/scripts/BxBaseBrowse.php
r15334 r15338 370 370 */ 371 371 function _genCountrySection( &$oObject, $sCurrentKey ) { 372 global $site; 372 bx_import('BxDolTemplate'); 373 $oSysTemplate = BxDolTemplate::getInstance(); 373 374 374 375 // init some variables ; … … 420 421 else { 421 422 $sCountryName = strtolower($sKey); 422 $sImagePath = $ site['flags'] . $sCountryName . '.gif';423 $sImagePath = $oSysTemplate->getIconUrl('sys_fl_' . $sCountryName . '.gif'); 423 424 $sCountrySection .= $oObject -> genBrowseLink( $sKey, $sValue, $oObject -> genLinkLocation( 'country', $sCountryName), $sImagePath, false ); 424 425 } … … 451 452 ); 452 453 453 $sCountrySection = BxDolTemplate::getInstance() ->parseHtmlByName( $aUsedTemplates[0], $aTemplateKeys );454 $sCountrySection = $oSysTemplate->parseHtmlByName( $aUsedTemplates[0], $aTemplateKeys ); 454 455 455 456 // return builded template ; -
trunk/templates/base/scripts/BxBaseCmtsView.php
r15332 r15338 214 214 * @return string 215 215 */ 216 function getCmtsInit () 217 { 218 global $site; 219 216 function getCmtsInit() { 220 217 $sToggleAdd = ''; 221 218 $sUseHtmlAdd = ''; … … 231 228 var " . $this->_sJsObjName . " = new BxDolCmts({ 232 229 sObjName : '" . $this->_sJsObjName . "', 233 sBaseUrl : '" . $site['url']. "',230 sBaseUrl : '" . BX_DOL_URL_ROOT . "', 234 231 sSystem : '" . $this->getSystemName() . "', 235 232 sSystemTable: '" . $this->_aSystem['table_cmts'] . "', -
trunk/templates/base/scripts/BxBaseCommunicator.php
r15334 r15338 23 23 ***************************************************************************/ 24 24 25 require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolCommunicator.php');25 bx_import('BxDolCommunicator'); 26 26 27 27 class BxBaseCommunicator extends BxDolCommunicator … … 102 102 */ 103 103 function getProcessingRows() { 104 global $site, $oFunctions ; 105 104 global $oFunctions ; 105 106 bx_import('BxDolTemplate'); 106 107 $oSysTemplate = BxDolTemplate::getInstance(); 107 108 … … 270 271 // define the member's country, sex, etc ... ; 271 272 $sMemberCountry = $aProfileInfo['Country']; 272 $sMemberFlag = $ site['flags'] . strtolower($sMemberCountry) . $this -> sMembersFlagExtension;273 $sMemberFlag = $oSysTemplate->getIconUrl('sys_fl_' . strtolower($sMemberCountry) . $this -> sMembersFlagExtension); 273 274 $sMemberSexImg = $oFunctions -> genSexIcon($aProfileInfo['Sex']); 274 275 -
trunk/templates/base/scripts/BxBaseConfig.php
r15211 r15338 67 67 parent::BxDol(); 68 68 69 global $site;70 71 69 $anon_mode = getParam('anon_mode'); 72 70 … … 79 77 $this -> sTinyMceEditorJS = ' 80 78 <!-- tinyMCE gz --> 81 <script type="text/javascript" src="' . $site['plugins']. 'tiny_mce/tiny_mce_gzip.js"></script>79 <script type="text/javascript" src="' . BX_DOL_URL_PLUGINS . 'tiny_mce/tiny_mce_gzip.js"></script> 82 80 <script type="text/javascript"> 83 81 tinyMCE_GZ.init({ … … 133 131 $this -> sTinyMceEditorCompactJS = ' 134 132 <!-- tinyMCE gz --> 135 <script type="text/javascript" src="' . $site['plugins']. 'tiny_mce/tiny_mce_gzip.js"></script>133 <script type="text/javascript" src="' . BX_DOL_URL_PLUGINS . 'tiny_mce/tiny_mce_gzip.js"></script> 136 134 <script type="text/javascript"> 137 135 tinyMCE_GZ.init({ … … 181 179 $this -> sTinyMceEditorMiniJS = ' 182 180 <!-- tinyMCE gz --> 183 <script type="text/javascript" src="' . $site['plugins']. 'tiny_mce/tiny_mce_gzip.js"></script>181 <script type="text/javascript" src="' . BX_DOL_URL_PLUGINS . 'tiny_mce/tiny_mce_gzip.js"></script> 184 182 <script type="text/javascript"> 185 183 tinyMCE_GZ.init({ … … 234 232 $this -> sTinyMceEditorMicroJS = ' 235 233 <!-- tinyMCE gz --> 236 <script type="text/javascript" src="' . $site['plugins']. 'tiny_mce/tiny_mce_gzip.js"></script>234 <script type="text/javascript" src="' . BX_DOL_URL_PLUGINS . 'tiny_mce/tiny_mce_gzip.js"></script> 237 235 <script type="text/javascript"> 238 236 tinyMCE_GZ.init({ -
trunk/templates/base/scripts/BxBaseIndexPageView.php
r15334 r15338 16 16 } 17 17 18 /**19 * News Letters block20 */21 18 function getBlockCode_Subscribe() { 22 global $site;23 24 19 bx_import('BxDolSubscription'); 25 20 $oSubscription = new BxDolSubscription(); … … 27 22 28 23 return $oSubscription->getData() . BxDolTemplate::getInstance()->parseHtmlByName('home_page_subscribe.html', array( 29 'message' => _t('_SUBSCRIBE_TEXT', $site['title']),24 'message' => _t('_SUBSCRIBE_TEXT', getParam('site_title')), 30 25 'button_title' => $aButton['title'], 31 26 'button_script' => $aButton['script'] … … 33 28 } 34 29 35 /**36 * Featured members block37 */38 30 function getBlockCode_Featured() { 39 31 $iFeatureNum = getParam('featured_num'); -
trunk/templates/base/scripts/BxBaseMailBox.php
r15335 r15338 88 88 */ 89 89 function getBlockCode_ComposeMessage() { 90 global $oSysTemplate , $site;90 global $oSysTemplate; 91 91 92 92 bx_import('BxDolTemplate'); … … 311 311 function getBlockCode_ViewMessage() { 312 312 global $oFunctions; 313 global $site;314 313 315 314 $oSysTemplate = BxDolTemplate::getInstance(); … … 412 411 413 412 $sMemberFlag = ($sMemberCountry) 414 ? $ site['flags'] . strtolower($sMemberCountry) . $this -> sMembersFlagExtension413 ? $oSysTemplate->getIconUrl('sys_fl_' . strtolower($sMemberCountry) . $this -> sMembersFlagExtension) 415 414 : null; 416 415 … … 718 717 */ 719 718 function getBlockCode_Contacts() { 720 global $oFunctions , $site;719 global $oFunctions; 721 720 722 721 $oSysTemplate = BxDolTemplate::getInstance(); … … 783 782 784 783 if( isset($aProfileInfo['Country']) && $aProfileInfo['Country'] ) { 785 $sMemberFlag = $ site['flags'] . strtolower($aProfileInfo['Country']) . $this -> sMembersFlagExtension;784 $sMemberFlag = $oSysTemplate->getIconUrl('sys_fl_' . strtolower($aProfileInfo['Country']) . $this -> sMembersFlagExtension); 786 785 } 787 786 … … 894 893 */ 895 894 function genArchiveMessages() { 896 global $oFunctions , $site;895 global $oFunctions; 897 896 898 897 $oSysTemplate = BxDolTemplate::getInstance(); … … 1074 1073 function genMessagesRows() { 1075 1074 global $oFunctions; 1076 global $site;1077 1075 1078 1076 $oSysTemplate = BxDolTemplate::getInstance(); … … 1189 1187 1190 1188 $sMemberCountry = $aProfileInfo['Country']; 1191 $sMemberFlag = $ site['flags'] . strtolower($sMemberCountry) . $this -> sMembersFlagExtension;1189 $sMemberFlag = $oSysTemplate->getIconUrl('sys_fl_' . strtolower($sMemberCountry) . $this -> sMembersFlagExtension); 1192 1190 $sMemberSexImg = $oFunctions -> genSexIcon($aProfileInfo['Sex']); 1193 1191 … … 1656 1654 */ 1657 1655 function get_member_menu_bubble_new_messages($iMemberId, $iOldCount = 0) { 1658 global $oFunctions , $site;1656 global $oFunctions; 1659 1657 1660 1658 $oSysTemplate = BxDolTemplate::getInstance(); … … 1801 1799 'thumbnail' => $sThumb, 1802 1800 'message_id' => $aRow['ID'], 1803 'site_url' => $GLOBALS['site']['url'],1801 'site_url' => BX_DOL_URL_ROOT, 1804 1802 ); 1805 1803 } -
trunk/templates/base/scripts/BxBaseProfileView.php
r15335 r15338 36 36 var $oProfileGen; 37 37 38 var $aConfSite; 39 var $aConfDir; 40 41 function BxBaseProfileView(&$oPr, &$aSite, &$aDir) { 38 function BxBaseProfileView(&$oPr) { 42 39 $this->oProfileGen = &$oPr; 43 $this->aConfSite = $aSite;44 $this->aConfDir = $aDir;45 40 parent::BxDolPageView('profile'); 46 41 } … … 130 125 131 126 function BxBaseProfileGenerator( $ID ) { 132 global $site;133 134 127 $this->aMutualFriends = array(); 135 128 -
trunk/templates/base/scripts/BxBaseSearchProfile.php
r15260 r15338 87 87 */ 88 88 function PrintSearhResult($aProfileInfo, $aCoupleInfo = '', $aExtendedKey = null, $sTemplateName = '', $oCustomTemplate = null) { 89 global $site;90 89 global $aPreValues; 90 91 if(!$oCustomTemplate) 92 $oCustomTemplate = BxDolTemplate::getInstance(); 91 93 92 94 $iVisitorID = getLoggedId(); … … 117 119 $city = _t("_City").": ".bx_process_output($aProfileInfo['City']); 118 120 119 $country = $aProfileInfo['Country'] ? 120 _t("_Country").": "._t($aPreValues['Country'][$aProfileInfo['Country']]['LKey']).' <img src="'. ($site['flags'].strtolower($aProfileInfo['Country'])) .'.gif" alt="flag" />' 121 : ''; 122 123 // country flag 124 $sFlag = ($aProfileInfo['Country'] != '') ? ' <img src="'. ($site['flags'].strtolower(bx_html_attribute($aProfileInfo['Country']))) .'.gif" alt="flag" />' : ''; 121 $country = $sFlag = ''; 122 if($aProfileInfo['Country'] != '') { 123 $sFlag = '<img src="' . $oCustomTemplate->getIconUrl('sys_fl_' . strtolower($aProfileInfo['Country']) . '.gif') . '" alt="flag" />'; 124 $country = _t("_Country").": " . _t($aPreValues['Country'][$aProfileInfo['Country']]['LKey']) . ' ' . $sFlag; 125 } 125 126 126 127 $sCityName = ($aProfileInfo['City']) ? bx_process_output($aProfileInfo['City']) . ', ' : null ; 127 128 128 129 if (!empty($aProfileInfo['Country'])) 129 $city_con = $sFlag . ' ' . $sCityName . _t( $aPreValues['Country'][$aProfileInfo['Country']]['LKey']);130 $city_con = ' ' . $sFlag . ' ' . $sCityName . _t($aPreValues['Country'][$aProfileInfo['Country']]['LKey']); 130 131 else 131 132 $city_con = ''; … … 170 171 171 172 $more = '<a href="' . getProfileLink( $aProfileInfo['ID'] ) . '" target="_blank">'; 172 $more .= '<img src="' . $ site['icons'] . 'desc_more.gif" alt="' . bx_html_attribute(_t('_more')) . '" />';173 $more .= '<img src="' . $oCustomTemplate->getIconUrl('desc_more.gif') . '" alt="' . bx_html_attribute(_t('_more')) . '" />'; 173 174 $more .= '</a>'; 174 175 … … 220 221 'ai_sendmsg' => empty($ai_sendmsg) ? '' : $ai_sendmsg, 221 222 'al_sendmsg' => $al_sendmsg, 222 'more' => $more, 223 'images' => $site['images'] 223 'more' => $more 224 224 ); 225 225 … … 231 231 } 232 232 233 return ($oCustomTemplate) ? $oCustomTemplate->parseHtmlByName($sTemplateName, $aKeys) : BxDolTemplate::getInstance()->parseHtmlByName($sTemplateName, $aKeys);233 return $oCustomTemplate->parseHtmlByName($sTemplateName, $aKeys); 234 234 } 235 235 -
trunk/templates/base/scripts/BxBaseSearchResult.php
r15211 r15338 31 31 $sLink = str_replace('{ownerId}', $aOwner['ownerId'], $sLink); 32 32 } 33 return $GLOBALS['site']['url']. $sLink;33 return BX_DOL_URL_ROOT . $sLink; 34 34 } 35 35 -
trunk/templates/base/scripts/BxBaseVotingView.php
r15211 r15338 8 8 9 9 bx_import('BxDolVoting'); 10 bx_import('BxDolTemplate'); 10 11 11 12 /** … … 53 54 } 54 55 55 function getVoting($iCanRate, $iSizeX, $iSizeY, $sName, $iPossibleID = 0, $isShowCount = true, $iVoteRateOverride = false) 56 { 57 global $site; 56 function getVoting($iCanRate, $iSizeX, $iSizeY, $sName, $iPossibleID = 0, $isShowCount = true, $iVoteRateOverride = false) { 57 $oSysTemplate = BxDolTemplate::getInstance(); 58 58 59 $sSiteUrl = BX_DOL_URL_ROOT; 59 60 $iMax = $this->getMaxVote(); 60 61 $iWidth = $iSizeX*$iMax; … … 71 72 $sRet .= <<<EOF 72 73 <script language="javascript"> 73 var oVoting{$sDivId} = new BxDolVoting('{$s ite['url']}', '{$sSystemName}', '{$iObjId}', '{$sDivId}', '{$sDivId}Slider', {$iSizeX}, {$iMax});74 var oVoting{$sDivId} = new BxDolVoting('{$sSiteUrl}', '{$sSystemName}', '{$iObjId}', '{$sDivId}', '{$sDivId}Slider', {$iSizeX}, {$iMax}); 74 75 </script> 75 76 EOF; … … 82 83 for ($i=1 ; $i<=$iMax ; ++$i) 83 84 { 84 $sRet .= '<a href="javascript:'.$i.';void(0);" onmouseover="oVoting'.$sDivId.'.over('.$i.');" onmouseout="oVoting'.$sDivId.'.out();" onclick="oVoting'.$sDivId.'.vote('.$i.')"><img class="votes_button_' .$sName.'" src="'.$site['base'].'images/vote_star_null.gif" alt="" /></a>';85 $sRet .= '<a href="javascript:'.$i.';void(0);" onmouseover="oVoting'.$sDivId.'.over('.$i.');" onmouseout="oVoting'.$sDivId.'.out();" onclick="oVoting'.$sDivId.'.vote('.$i.')"><img class="votes_button_' . $sName . '" src="' . $oSysTemplate->getImageUrl('vote_star_null.gif') . '" alt="" /></a>'; 85 86 } 86 87 $sRet .= '</div>'; -
trunk/templates/tmpl_uni/scripts/BxTemplConfig.php
r15334 r15338 9 9 bx_import('BxBaseConfig'); 10 10 11 bx_import('BxDolTemplate');12 $oSysTemplate = BxDolTemplate::getInstance();13 14 // path to the images used in the template15 global $site;16 $site['images'] = $site['url'] . "templates/tmpl_" . $oSysTemplate->getCode() . "/images/";17 $site['zodiac'] = $site['images'] . "zodiac/";18 $site['icons'] = $site['images'] . "icons/";19 $site['css_dir']= "templates/tmpl_" . $oSysTemplate->getCode() . "/css/";20 21 11 class BxTemplConfig extends BxBaseConfig { 22 12 function BxTemplConfig() { 23 BxBaseConfig::BxBaseConfig(); 13 parent::BxBaseConfig(); 14 15 bx_import('BxDolTemplate'); 16 $sCode = BxDolTemplate::getInstance()->getCode(); 17 $sStaticImages = BX_DOL_URL_ROOT . 'templates/tmpl_' . $sCode . '/images/'; 18 19 $oSysConfig = BxDolConfig::getInstance(); 20 $oSysConfig->set('url_static', 'images', $sStaticImages); 21 $oSysConfig->set('url_static', 'icons', $sStaticImages . 'icons/'); 22 23 $oSysConfig->set('path_static', 'css', BX_DIRECTORY_PATH_ROOT . 'templates/tmpl_' . $sCode . '/css/'); 24 24 } 25 25 } -
trunk/templates/tmpl_uni/scripts/BxTemplProfileView.php
r15211 r15338 6 6 7 7 class BxTemplProfileView extends BxBaseProfileView { 8 function BxTemplProfileView(&$oPr , &$aSite, &$aDir) {9 BxBaseProfileView::BxBaseProfileView($oPr , $aSite, $aDir);8 function BxTemplProfileView(&$oPr) { 9 BxBaseProfileView::BxBaseProfileView($oPr); 10 10 } 11 11 } -
trunk/terms_of_use.php
r15211 r15338 22 22 */ 23 23 function PageCompPageMainCode() { 24 $sRet = str_replace('<site>', $GLOBALS['site']['title'], _t("_TERMS_OF_USE"));24 $sRet = str_replace('<site>', getParam('site_title'), _t("_TERMS_OF_USE")); 25 25 return DesignBoxContent(_t("_TERMS_OF_USE_H"), $sRet, BX_DB_PADDING_DEF); 26 26 } -
trunk/upgrade/classes/BxDolUpgradeDb.php
r15211 r15338 322 322 } 323 323 324 function genMySQLErr( $out, $query ='' ) 325 { 326 global $site; 327 324 function genMySQLErr( $out, $query ='' ) { 328 325 $aBackTrace = debug_backtrace(); 329 326 unset( $aBackTrace[0] ); -
trunk/xmlrpc/BxDolXMLRPCProfileView.php
r15211 r15338 23 23 } 24 24 25 function getProfileInfoBlock($sCaption, $sContent) 26 { 27 global $site; 28 25 function getProfileInfoBlock($sCaption, $sContent) { 29 26 $iBlockID = (int)$sContent; 30 27
Note: See TracChangeset
for help on using the changeset viewer.