$iNameIndex, 'css_name' => array('forms_adv.css'), 'js_name' => array(), 'header' => _t('_dbcsDeanosToolsHeader'), 'header_text' => _t('_dbcsDeanosToolsHeaderText') ); $_page_cont[$iNameIndex]['page_main_code'].=$this->DeanoMainCode(); PageCodeAdmin(); } function DeanoMainCode() { global $site; $settingsv = ' collapsed'; $settingss = ' style="display: none;"'; $saCv = ' collapsed'; $saCs = ' style="display: none;"'; $scCv = ' collapsed'; $scCs = ' style="display: none;"'; $smCv = ' collapsed'; $smCs = ' style="display: none;"'; $stCv = ' collapsed'; $stCs = ' style="display: none;"'; $sqCv = ' collapsed'; $sqCs = ' style="display: none;"'; $pmCv = ' collapsed'; $pmCs = ' style="display: none;"'; $pwCv = ' collapsed'; $pwCs = ' style="display: none;"'; $pbCv = ' collapsed'; $pbCs = ' style="display: none;"'; $peCv = ' collapsed'; $peCs = ' style="display: none;"'; //$otCv = ' collapsed'; //$otCs = ' style="display: none;"'; $cacheC = ' collapsed'; $cacheS = ' style="display: none;"'; $ipC = ' collapsed'; $ipS = ' style="display: none;"'; $sExistedC = _t('_dbcsDeanosToolsBoxHeader', $this->_oDb->getModuleVersion()); $sCss = $this->_oTemplate->addCss('unit.css', true); $sJs = $this->_oTemplate->addJs('deanostools.js', true); $sAction = BX_DOL_URL_ROOT . 'modules/?r=deanos_tools/administration/'; $GetLangID = $_GET['LangID']; if ($GetLangID == '') $GetLangID = 1; $dbAction = $_REQUEST['saction']; $section = $_REQUEST['se']; if(isset($_POST['save']) && isset($_POST['cat'])) { $section = 'settings'; $this->dbcsClearCache('sys_options'); } $sCode = ''; switch ($section) { case "settings": $settingsv = ''; $settingss = ''; break; case "sa": $saCv = ''; $saCs = ''; break; case "sc": $scCv = ''; $scCs = ''; break; case "sm": $smCv = ''; $smCs = ''; break; case "st": $stCv = ''; $stCs = ''; break; case "sq": $sqCv = ''; $sqCs = ''; break; case "pm": $pmCv = ''; $pmCs = ''; break; case "pw": $pwCv = ''; $pwCs = ''; break; case "pb": $pbCv = ''; $pbCs = ''; break; case "pe": $peCv = ''; $peCs = ''; break; case "ot": $otCv = ''; $otCs = ''; break; case "dc": $cacheC = ''; $cacheS = ''; break; case "ip": $ipC = ''; $ipS = ''; break; } switch ($dbAction) { case "sm": // set role to member $dbID = $_POST['id']; if($dbID > 0) { $this->_oDb->setMember($dbID); $sCode .= '
' . MsgBox(_t('_dbcs_DT_Member') . ' ' . $this->_oDb->getNickName($dbID) . ' ' . _t('_dbcs_DT_Member Role'),4) . '
'; $sCode .= '
'; $this->dbcsClearCache('users'); } break; case "sa": // set role to admin $dbID = $_POST['id']; if($dbID > 0) { $this->_oDb->setAdmin($dbID); $sCode .= '
' . MsgBox(_t('_dbcs_DT_Member') . ' ' . $this->_oDb->getNickName($dbID) . ' ' . _t('_dbcs_DT_Admin Role'),4) . '
'; $sCode .= '
'; $this->dbcsClearCache('users'); } break; case "sc": // save copyright. $dbID = $this->_oDb->getCopyrightID(); $dbLang=$_GET['LangID']; $dbText=$_POST['copyright']; $this->_oDb->saveCopyrightText($dbID,$dbLang,$dbText); compileLanguage($dblang); $sCode .= '
' . MsgBox(_t('_dbcs_DT_Copyright Text Saved'),4) . '
'; $sCode .= '
'; break; case "ds": // delete shoutbox messages. $dbcnt=0; foreach($_POST as $name => $value) { $r=strstr($name, "C_"); if($r) { $s=explode("_",$r); $n=$s[1]; $this->_oDb->deleteShoutboxMessage($n); $dbcnt++; } } if ($dbcnt > 1) { $sCode .= '
' . MsgBox(_t('_dbcs_DT_Deleted') . $dbcnt . _t('_dbcs_DT_ShoutboxM1'),4) . '
'; $sCode .= '
'; } if ($dbcnt == 1) { $sCode .= '
' . MsgBox(_t('_dbcs_DT_Deleted') . $dbcnt . _t('_dbcs_DT_ShoutboxM2'),4) . '
'; $sCode .= '
'; } if ($dbcnt == 0) { $sCode .= '
' . MsgBox(_t('_dbcs_DT_ShoutboxM3'),4) . '
'; $sCode .= '
'; } break; case "dt": // delete site tags. $dbcnt=0; foreach($_POST as $name => $value) { $r=strstr($name, "C_"); if($r) { $s=explode("_",$r); $n=$s[1]; $b=explode(",",$n); $a1=base64_decode($b[0]); $a2=base64_decode($b[1]); $this->_oDb->deleteTag($a1,$a2); $dbcnt++; } } if ($dbcnt > 1) { $sCode .= '
' . MsgBox(_t('_dbcs_DT_Deleted') . $dbcnt . _t('_dbcs_DT_SiteTagM1'),4) . '
'; $sCode .= '
'; } if ($dbcnt == 1) { $sCode .= '
' . MsgBox(_t('_dbcs_DT_Deleted') . $dbcnt . _t('_dbcs_DT_SiteTagM2'),4) . '
'; $sCode .= '
'; } if ($dbcnt == 0) { $sCode .= '
' . MsgBox(_t('_dbcs_DT_SiteTagM3'),4) . '
'; $sCode .= '
'; } break; case "sq": // sql query. $dbQuery = $_POST['dbcsDTsqlquery']; if (get_magic_quotes_gpc()) { $dbQuery = stripslashes($dbQuery); } file_put_contents(BX_DIRECTORY_PATH_ROOT . "tmp/dbsql.sql",$dbQuery); execSqlFile(BX_DIRECTORY_PATH_ROOT . "tmp/dbsql.sql"); unlink(BX_DIRECTORY_PATH_ROOT . "tmp/dbsql.sql"); $sCode .= '
' . MsgBox(_t('_dbcs_DT_MySql Query Executed'),4) . '
'; $sCode .= '
'; break; case "uf": $target_path = BX_DIRECTORY_PATH_ROOT . "tmp/"; $target_path = $target_path . basename( $_FILES['uploadedfile']['name']); if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { execSqlFile($target_path); unlink($target_path); $sCode .= '
' . MsgBox(_t('_dbcs_DT_MySql File Uploaded and Executed'),4) . '
'; $sCode .= '
'; } else{ $sCode .= '
' . MsgBox(_t('_dbcs_DT_Error_Uploading_File'),4) . '
'; $sCode .= '
'; } break; case "dm": // delete messages. $senderID=$_POST['senderid']; $this->_oDb->deleteMessages($senderID); $sCode .= '
' . MsgBox(_t('_dbcs_DT_DeleteM1') . $senderID . _t('_dbcs_DT_DeleteM2'),4) . '
'; $sCode .= '
'; break; case "sw": // Set Page Width. $iPageWidth=$_POST['pagewidth']; $this->_oDb->setPageWidth($iPageWidth); $sCode .= '
' . MsgBox(_t('_dbcs_DT_PageWidthSet'),4) . '
'; $sCode .= '
'; $this->dbcsClearCache('sys_page_compose'); $this->dbcsClearCache('sys_options'); break; case "pb": // Insert PHP Block. $s1 = $_POST['phppage']; $s2 = $_POST['phplkey']; $s3 = $_POST['phpltext']; $s4 = process_db_input($_POST['dbcsDTphpcode']); if (!$this->_oDb->keyExists($s2)) { // key does not exist. Add it to all installed languages under my catagory. addStringToLanguage($s2, $s3, -1, $this->_oDb->getLangCat()); } // now insert the php block on specified page. $this->_oDb->insertPHPBlock($s1,$s2,$s3,$s4); $sCode .= '
' . MsgBox(_t('_dbcs_DT_PHPBlockSaved'),4) . '
'; $sCode .= '
'; $this->dbcsClearCache('sys_page_compose'); $this->dbcsClearCache('sys_options'); break; case "pe": // Edit/Delete PHP Block. $PHPid = intval($_GET['phpbid']); if (isset($_POST['B1']) && $PHPid > 0) { // save button clicked. $sLkey = $_POST['phplkey']; $sPHPCode = process_db_input($_POST['dbcsDTphpcode']); $this->_oDb->updatePHPBlock($PHPid,$sLkey,$sPHPCode); $sCode .= '
' . MsgBox(_t('_dbcs_DT_PHPBlockSavedE'),4) . '
'; $sCode .= '
'; } if (isset($_POST['B2']) && $PHPid > 0) { // delete button clicked. $this->_oDb->deletePHPBlock($PHPid); $sCode .= '
' . MsgBox(_t('_dbcs_DT_PHPBlockDeletedE'),4) . '
'; $sCode .= '
'; } $this->dbcsClearCache('sys_page_compose'); $this->dbcsClearCache('sys_options'); $_GET['phpbid'] = 0; break; case "dc": // process cache file deletion. $bSelected = false; if (isset($_POST['B1'])) { $sPath = BX_DIRECTORY_PATH_DBCACHE; $s = $_POST['CacheS']; if ($s){ $bSelected = true; foreach ($s as $t){ if (is_file($sPath . $t)) { unlink($sPath . $t); } if (is_dir($sPath . $t)) { $this->delete_directory($sPath . $t); } //$sCode .= $t . '
'; } } if ($bSelected) { $sCode .= '
' . MsgBox(_t('_dbcs_DT_SelectedCacheDeleted'),4) . '
'; $sCode .= '
'; } else { $sCode .= '
' . MsgBox(_t('_dbcs_DT_NoCacheSelected'),4) . '
'; $sCode .= '
'; } } if (isset($_POST['B2'])) { $sPath = BX_DIRECTORY_PATH_CACHE_PUBLIC; $s = $_POST['CachePublicS']; if ($s){ $bSelected = true; foreach ($s as $t){ if (is_file($sPath . $t)) { unlink($sPath . $t); } if (is_dir($sPath . $t)) { $this->delete_directory($sPath . $t); } //$sCode .= $t . '
'; } } if ($bSelected) { $sCode .= '
' . MsgBox(_t('_dbcs_DT_SelectedCachePublicDeleted'),4) . '
'; $sCode .= '
'; } else { $sCode .= '
' . MsgBox(_t('_dbcs_DT_NoCachePublicSelected'),4) . '
'; $sCode .= '
'; } } if (isset($_POST['B3'])) { $sPath = BX_DIRECTORY_PATH_ROOT . 'tmp/'; $s = $_POST['TmpS']; if ($s){ $bSelected = true; foreach ($s as $t){ if (is_file($sPath . $t)) { unlink($sPath . $t); } if (is_dir($sPath . $t)) { $this->delete_directory($sPath . $t); } //$sCode .= $t . '
'; } } if ($bSelected) { $sCode .= '
' . MsgBox(_t('_dbcs_DT_SelectedTmpDeleted'),4) . '
'; $sCode .= '
'; } else { $sCode .= '
' . MsgBox(_t('_dbcs_DT_NoTmpSelected'),4) . '
'; $sCode .= '
'; } } break; case "ip": // IP Addresses. break; } $sCode .= '
'; if ($this->_oDb->isShoutBoxInstalled()) { $sCode .= ' '; $sCode .= ' '; } $sCode .= ' '; $sCode .= ' '; $ipStart = intval($_GET['st']); $ipPerPage = intval($_GET['pp']); if ($_REQUEST['sg'] == 1) $ipShowGuests = 1; if ($_REQUEST['sm'] == 1) $ipShowMembers = 1; $sNickSearch = $_REQUEST['search']; if($_GET['se'] == '') { $ipShowGuests = 1; $ipShowMembers = 1; } if($ipShowGuests == 1) $ipShowGuestsC = ' checked'; if($ipShowMembers == 1) $ipShowMembersC = ' checked'; $sCode .= ' '; if($ipPerPage == 0) $ipPerPage = getParam('dbcs_DT_alpp'); $ipCount = $this->_oDb->getIPCount($ipShowGuests, $ipShowMembers, $sNickSearch); if ($ipCount > 0) { $sCode .= ' '; } else { $sCode .= ''; } $sCode .= '
' . _t('_dbcs_DT_Settings_HE') . '
'; // get sys_option's category id; $iCatId = $this-> _oDb -> getSettingsCategoryId('dbcs_DT_sapp'); if(!$iCatId) { $sOptions = MsgBox( _t('_Empty') ); } else { bx_import('BxDolAdminSettings'); $oSettings = new BxDolAdminSettings($iCatId); $mixedResult = ''; if(isset($_POST['save']) && isset($_POST['cat'])) { $mixedResult = $oSettings -> saveChanges($_POST); } // get option's form; $sOptions = $oSettings -> getForm(); if($mixedResult !== true && !empty($mixedResult)) { $sOptions = $mixedResult . $sOptions; } } $dbcsMessage = '
' . _t('_dbcs_DT_Settings_Message') . '
'; $sCssStyles = $this -> _oTemplate -> addCss('forms_adv.css', true); $sCode .= DesignBoxAdmin( _t('_Settings') , $GLOBALS['oSysTemplate'] -> parseHtmlByName('default_padding.html', array('content' => $dbcsMessage . $sCssStyles . $sOptions) )); $guestLog = getParam('dbcs_DT_logguests'); $iGuestCheck = $this->_oDb->checkGuestAlert(); if ($guestLog == 1) { if ($iGuestCheck < 1) { $this->_oDb->addGuestAlert(); $this->dbcsClearCache('sys_alerts'); $this->dbcsClearCache('sys_options'); } } if ($guestLog == 0) { if ($iGuestCheck > 0) { $this->_oDb->removeGuestAlert(); $this->dbcsClearCache('sys_alerts'); $this->dbcsClearCache('sys_options'); } } $sCode .= '
' . _t('_dbcs_DT_Site Administrators') . '
' . _t('_dbcs_DT_Section1_Msg') . '
'; $start = intval($_GET['st']); $perpage = intval($_GET['pp']); if ($perpage == 0) $perpage = getParam('dbcs_DT_sapp'); if ($_REQUEST['search'] == '') { $sCode .= '
'; } else { $sCode .= ''; } $sCode .= '
' . _t('_dbcs_DT_Search_Label') . '
'; $s1 = 'right'; $s2 = 'right'; if ($_GET['ob'] == 'ID') $s1 = 'down'; if ($_GET['ob'] == '' || $_GET['ob'] == 'NickName') $s2 = 'down'; $sCode .= ' '; $memCount = $this->_oDb->getMemberCount(); $adminCount = $this->_oDb->getAdminCount(); $orderBy = 'NickName'; $sSearch = $_REQUEST['search']; if ($_GET['ob'] != '') $orderBy = $_GET['ob']; $MemKeys = $this->_oDb->getMembers($start,$perpage,$orderBy,$sSearch); foreach ($MemKeys as $iID => $MemData) { $MemID = (int)$MemData['ID']; $MemNick = $MemData['NickName']; $MemRole = $MemData['Role']; $sCode .= ''; $MemPass = getPassword($MemID); $aID = $_COOKIE['memberID']; $aPass = getPassword($aID); $aUrl = parse_url($GLOBALS['site']['url']); $sPath = isset($aUrl['path']) && !empty($aUrl['path']) ? $aUrl['path'] : '/'; $sCode .= ''; $sCode .= ''; if ($_COOKIE['memberID'] == $MemID) { $sCode .= ''; } else { $sCode .= ''; } if ($MemRole == 3) { $sCode .= ''; } else { $sCode .= ''; } if ($MemRole == 3) { if ($adminCount > 1) { //$sCode .= ''; $sCode .= ''; } else { $sCode .= ''; } } else { //$sCode .= ''; $sCode .= ''; } $sCode .= ''; } if ($_REQUEST['search'] == '') { $sPageURL = '?r=deanos_tools/administration/&se=sa&st={start}&pp={per_page}&ob=' . $orderBy; } else { $sPageURL = '?r=deanos_tools/administration/&se=sa&st={start}&pp={per_page}&ob=' . $orderBy . '&search=' . $_REQUEST['search']; } if ($_REQUEST['search'] != '') $memCount = $this->_oDb->getMemberCount2($orderBy,$sSearch); $oPaginate = new BxDolPaginate(array( 'start' => $start, 'count' => $memCount, 'per_page' => $perpage, 'page_url' => $sPageURL, 'on_change_page' => 'aa' )); $sPaginate = $oPaginate->getPaginate(); $sCode .= '
' . _t('_dbcs_DT_Logon as Member') . ' ' . _t('_dbcs_DT_Current Role') . ' ' . _t('_dbcs_DT_Set Role') . '
' . $MemID . '' . $MemNick . 'Logged OnLogon' . _t('_dbcs_DT_Admin') . '' . _t('_dbcs_DT_Member') . '' . _t('_dbcs_DT_Set as Member') . '' . _t('_dbcs_DT_Set as Member') . '' . _t('_dbcs_DT_Not Available') . '' . _t('_dbcs_DT_Set as Admin') . '' . _t('_dbcs_DT_Set as Admin') . '
' . $sPaginate; $sCode .= '

' . _t('_dbcs_DT_Set Copyright Text') . '
' . _t('_dbcs_DT_Section4_Msg') . '
' . _t('_dbcs_DT_LangR') . '
' . _t('_dbcs_DT_Copyright Text') . '
' . _t('_dbcs_DT_Shoutbox Messages') . '
' . _t('_dbcs_DT_Section5_Msg') . '
'; $sbMessages = $this->_oDb->getShoutboxMessages(); $dbcnt = 0; foreach ($sbMessages as $iID => $sbData) { $sbID = (int)$sbData['ID']; $sbFrom = (int)$sbData['OwnerID']; $sbMsg = $sbData['Message']; $sbDate = $sbData['Date']; $sCode .= ''; $sCode .= ''; $sCode .= ''; $sCode .= ''; $sCode .= ''; $sCode .= ''; $dbcnt++; } if ($dbcnt > 0) { $sCode .= ''; } else { $sCode .= ''; } $sCode .= '
' . _t('_dbcs_DT_From') . ' ' . _t('_dbcs_DT_Message') . ' ' . _t('_dbcs_DT_Date') . '
' . $this->_oDb->getNickName($sbFrom) . '' . $sbMsg . '' . $sbDate . '
' . MsgBox(_t('_Empty')) . '
' . _t('_dbcs_DT_Site Tags') . '
' . _t('_dbcs_DT_Section6_Msg') . '
'; $tagsStart = intval($_GET['st']); $tagsPerPage = intval($_GET['pp']); if($tagsPerPage == 0) $tagsPerPage = getParam('dbcs_DT_stpp'); $tagsCount = $this->_oDb->getTagCount(); if ($tagsCount > 0) { $sTags = $this->_oDb->getTags($tagsStart, $tagsPerPage); foreach ($sTags as $iID => $stData) { $stTag = $stData['Tag']; $stTag64 = base64_encode($stTag); $stType = $stData['Type']; $stType64 = base64_encode($stType); $stDate = $stData['Date']; $sCode .= ''; $sCode .= ''; $sCode .= ''; $sCode .= ''; $sCode .= ''; $sCode .= ''; } $sTagsPageURL = '?r=deanos_tools/administration/&se=st&st={start}&pp={per_page}'; $oPaginate = new BxDolPaginate(array( 'start' => $tagsStart, 'count' => $tagsCount, 'per_page' => $tagsPerPage, 'page_url' => $sTagsPageURL, 'on_change_page' => 'aa' )); $sPaginate = $oPaginate->getPaginate(); $sCode .= ''; $sCode .= ''; } else { $sCode .= ''; } $sCode .= '
' . _t('_dbcs_DT_Tag') . ' ' . _t('_dbcs_DT_Type') . ' ' . _t('_dbcs_DT_Date') . '
' . $stTag . '' . $stType . '' . $stDate . '
' . $sPaginate . '
' . MsgBox(_t('_Empty')) . '
' . _t('_dbcs_DT_SQL Query Tool') . '
' . _t('_dbcs_DT_Section7_Msg') . '
' . _t('_dbcs_DT_MySQL Query') . '
 
' . _t('_dbcs_DT_FileToUpload') . '
' . _t('_dbcs_DT_Remove Spam Messages') . '
' . _t('_dbcs_DT_Section8_Msg') . '
' . _t('_dbcs_DT_Senders Member ID') . '
' . _t('_dbcs_DT_Set Page Widths') . '
' . _t('_dbcs_DT_Section9_Msg') . '
' . _t('_dbcs_DT_Page Width') . '
'; if ($_POST['pagewidth'] == '') { $iPageWidth = 1140; } else { $iPageWidth = intval($_POST['pagewidth']); } $sCode .= '
' . _t('_dbcs_DT_PHPBlock_H') . '
' . _t('_dbcs_DT_Section10_Msg') . '
' . _t('_dbcs_DT_PHPBlock_P') . '
' . _t('_dbcs_DT_PHPBlock_LKey') . '
' . _t('_dbcs_DT_PHPBlock_LText') . '
' . _t('_dbcs_DT_PHPBlock_Code') . '
' . _t('_dbcs_DT_PHPBlock_HE') . '
' . _t('_dbcs_DT_Section11_Msg') . '
'; $PHPid = intval($_GET['phpbid']); $sCode .= '
' . _t('_dbcs_DT_PHPBlock_PE') . '
' . _t('_dbcs_DT_PHPBlock_LKeyE') . '
' . _t('_dbcs_DT_PHPBlock_CodeE') . '
 
' . _t('_dbcs_DT_Cache_HE') . '
' . _t('_dbcs_DT_Section13_Msg') . '
'; $sCode .= '
' . _t('_dbcs_DT_Cache') . '
' . _t('_dbcs_DT_CachePublic') . '
' . _t('_dbcs_DT_Tmp') . '
' . _t('_dbcs_DT_IP_HE') . '
' . _t('_dbcs_DT_Section14_Msg') . '
' . _t('_dbcs_DT_ShowMembers') . '
 
' . _t('_dbcs_DT_ShowGuests') . '
 
' . _t('_dbcs_DT_SearchNick') . '
 
'; $aIP = $this->_oDb->getIPList($ipStart, $ipPerPage, $ipShowGuests, $ipShowMembers, $sNickSearch); foreach ($aIP as $iID => $sData) { $sCode .= ''; $sCode .= ' '; if ($sData['member_id'] > 0) { $sCode .= ' '; } else { $sCode .= ' '; } $sCode .= ' '; $sCode .= ' '; $sCode .= ''; } $sIPPageURL = '?r=deanos_tools/administration/&search=' . $sNickSearch . '&se=ip&sg=' . $ipShowGuests . '&sm=' . $ipShowMembers . '&st={start}&pp={per_page}'; $oPaginate = new BxDolPaginate(array( 'start' => $ipStart, 'count' => $ipCount, 'per_page' => $ipPerPage, 'page_url' => $sIPPageURL, 'on_change_page' => 'aa' )); $sPaginate = $oPaginate->getPaginate(); $sCode .= ''; $sCode .= '
' . _t('_dbcs_DT_Member ID') . ' ' . _t('_dbcs_DT_Nickname') . ' ' . _t('_dbcs_DT_IP Address') . ' ' . _t('_dbcs_DT_Logon Time') . '
' . $sData['member_id'] . '' . $sData['nick_name'] . '' . $sData['nick_name'] . '' . $sData['ip_address'] . ' ' . date("F j, Y, g:i a", $sData['time_stamp']) . '
' . $sPaginate . '
' . MsgBox(_t('_Empty')) . '
' . _t('_dbcs_DT_OtherBlock_HE') . '
' . _t('_dbcs_DT_Section12_Msg') . '
'; $sCode .= '
Product Name: Deanos Facebook Connect
Product Version: 4.1.2
Description: This module was developed to replace the Boonex version of Facebook connect. I maintain this version throughout all versions of dolphin and any changes Facebook makes so a working version is always available. Far more reliable than the boonex version, and has more features.
Product Name: Deanos Google Connect
Product Version: 1.0.2
Description: This module allows your members to quickly signup to connect to your site using their Google account information. Similar to Facebook connect, but members can connect using their google information instead.
Product Name: Online Members For Member Menu
Product Version: 2.0.4
Description: This mod is an add-on to the dolphin member menu. Shows a pop up list of members currently online. Members shown can be filtered by Gender and age range. Couple option can be disabled in the settings.
Product Name: Admin Announcements
Product Version: 1.0.4
Description: Admin Announcements is a new module to provide a single announcement display targeted to specific ages or membership levels. One announcement at a time is displayed, and when skipped or marked as read, the next is displayed. When no more announcements are available, the box simply disapears from the page. Admin Announcements is intended as a alternative to other methods used in dolphin to display notices to your members.
Product Name: Head Injections
Product Version: 2.0.1
Description: The Per Page Head Injections mod allows you to inject additional code such as meta tags, script and style tags into the head section of any dolphin page. Pages are matched by their current title. The title is currently the only tag within the head that can be overridden.
Help support the continued development of my free modules by purchasing some of my others.
'; bx_import('BxDolPageView'); $sActions = BxDolPageView::getBlockCaptionMenu(mktime(), array( 'add_unit' => array('href' => $sAction, 'title' => _t('_dbcs_DT_Refresh Page'), 'onclick' => '', 'active' => 0), )); return DesignBoxContent($sExistedC, $sCss . $sJs . '
' . $sCode . '
', 1, $sActions); } function delete_directory($dirname) { if (is_dir($dirname)) $dir_handle = opendir($dirname); if (!$dir_handle) return false; while($file = readdir($dir_handle)) { if ($file != "." && $file != "..") { if (!is_dir($dirname."/".$file)) unlink($dirname."/".$file); else $this->delete_directory($dirname.'/'.$file); } } closedir($dir_handle); rmdir($dirname); return true; } function dbcsClearCache($sSection) { switch($sSection) { case 'sys_options': // Clear for dolphin 7.0.3 $files = glob(BX_DIRECTORY_PATH_CACHE . 'sys_options_*.php'); array_map('unlink', $files); // Clear for dolphin versions below 7.0.3 $sFileName = BX_DIRECTORY_PATH_CACHE . 'sys_options.php'; if (file_exists($sFileName)) unlink($sFileName); break; case 'sys_page_compose': // Clear for dolphin 7.0.3 $files = glob(BX_DIRECTORY_PATH_CACHE . 'db_sys_page_compose*.php'); array_map('unlink', $files); // Clear for dolphin versions below 7.0.3 $sFileName = BX_DIRECTORY_PATH_CACHE . 'sys_page_compose.inc'; if (file_exists($sFileName)) unlink($sFileName); break; case 'sys_alerts': // Clear for dolphin 7.0.3 $files = glob(BX_DIRECTORY_PATH_CACHE . 'db_sys_alerts*.php'); array_map('unlink', $files); // Clear for dolphin versions below 7.0.3 $sFileName = BX_DIRECTORY_PATH_CACHE . 'sys_alerts.inc'; if (file_exists($sFileName)) unlink($sFileName); break; case 'users': $files = glob(BX_DIRECTORY_PATH_CACHE . 'user*.php'); array_map('unlink', $files); break; } } } ?>