<!-- help tab ends--> <!-- <div class="layout_social"> <a href="http://www.facebook.com/ofuzfan"><img src="/images/facebook_icon.png" width="38" height="38" alt="" /></a> <a href="http://twitter.com/ofuz"><img src="/images/t_logo-a.png" width="36" height="36" alt="" /></a> </div>--> <div class="layout_navbar_left"> <?php if (!isset($_SESSION['dashboard_link'])) { $_SESSION['dashboard_link'] = "index"; } //$do_user_settings = new UserSettings(); //$setting_gears_arr = $do_user_settings->getSettingValue("google_gears"); //$contacts_page = ($setting_gears_arr['setting_value'] == 'Yes') ? 'ggears_contacts' : 'contacts'; //print_r($GLOBALS['cfg_tab_placement']); echo '<br />'; $do_plugin_enable = new PluginEnable(); if ($GLOBALS['cfg_tab_placement']->count() > 0) { foreach ($GLOBALS['cfg_tab_placement'] as $tab) { if (is_object($tab)) { $tab_name = $tab->getTabName(); if (in_array($tab_name, $core_tab_name)) { if ($tab_name == _('Dashboard')) { $tab->setDefaultPage($_SESSION['dashboard_link']); } //if ($tab->getTabName() == _('Contacts')) { $tab->setDefaultPage($contacts_page); } if ($tab->isActive() === true) { $tab->processTab(); } } else { //if($tab->isActive() === true ){ $idplugin_enabled = $do_plugin_enable->isEnabled($tab->getTabName());
echo $_SESSION['do_Contacts']->unshare_co_worker; ?> "> <?}else{?> <br /><?php echo _('or '); ?> <span class="redlink"><a href="#" onclick="actionMultiple('co_workers.php','');return false;"><?php echo _('Share With Co-Workers'); ?> </a></span> <?php } ?> <?php $plugin_enable = new PluginEnable(); foreach ($cfg_plugin_eventmultiple_placement['contacts'] as $event_multiple_plugin) { if ($plugin_enable->isEnabled($event_multiple_plugin['plugin']) || $event_multiple_plugin['plugin'] == "Core") { if (strlen($event_multiple_plugin['event']) > 0) { echo "\n<br>" . _('or ') . '<span class="redlink"><a href="#" onclick="eventActionMultiple(\'' . $event_multiple_plugin['event'] . '\',\'' . $event_multiple_plugin['confirm'] . '\');return false;">' . _($event_multiple_plugin['name']) . '</a></span> '; } elseif (strlen($event_multiple_plugin['action']) > 0) { echo "\n<br>" . _('or ') . '<span class="redlink"> <a href="#" onclick="actionMultiple(\'' . $event_multiple_plugin['action'] . '\',\'' . $event_multiple_plugin['confirm'] . '\');return false;">' . _($event_multiple_plugin['name']) . '</a></span> '; } } } ?> <div class="spacerblock_10"></div> <span class="sasnlinks">( <span class="bluelink"><a href="#" onclick="fnSelAll(); return false;"><?php echo _('select all');
/** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/ // Copyright 2008 - 2010 all rights reserved, SQLFusion LLC, info@sqlfusion.com /** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/ $pageTitle = 'Ofuz :: Plugin Blocks'; include_once 'config.php'; if (isset($GLOBALS['page_name'])) { $page_name = $GLOBALS['page_name']; } else { $currentFile = $_SERVER["PHP_SELF"]; $parts = Explode('/', $currentFile); $page_name = $parts[count($parts) - 1]; list($page_name, $file_extention) = explode('.', $page_name); } // Disable for 0.6.2 will be released on 0.6.3 $do_plugin_enable = new PluginEnable(); if (is_array($cfg_block_placement) && count($cfg_block_placement) > 0) { foreach ($cfg_block_placement as $key => $val) { if (strtolower($key) == strtolower($page_name)) { foreach ($val as $block_class_name) { $do_blocks = new $block_class_name(); if (in_array($block_class_name, $core_plugin_names)) { $idplugin_enable = true; if ($do_blocks->isActive() === true && $idplugin_enable !== false) { $do_blocks->processBlock(); } } else { $idplugin_enabled = $do_plugin_enable->isEnabled($block_class_name); $idplugin_enable = true; if ($do_blocks->isActive() === true && $idplugin_enable !== false && $idplugin_enabled !== false) { $do_blocks->processBlock();
echo '</td>'; echo '</tr>'; echo '<tr>'; echo '<td colspan=4>'; echo '<div class="dashedline"></div>'; echo '</td>'; echo '</tr>'; } } } echo '</table>'; } /** Menu Block Displaying **/ echo "<br>"; echo '<b>' . _('Menu Plugins') . ' :</b><br /><br />'; $do_plugin_enable = new PluginEnable(); $do_dynamic_button = new DynamicButton(); foreach ($GLOBALS['cfg_tab_placement'] as $tab_plugin) { if (is_object($tab_plugin)) { $tab_name = $tab_plugin->getTabName(); if (in_array($tab_name, $core_tab_name)) { echo '<table width="100%">'; echo '<tr height="30px;">'; echo '<td colspan=1 width="30%">'; echo $tab_name; echo '</td>'; echo '<td colspan=2 valign="left" width="50%">'; echo '</td>'; echo '<td width=12%>'; //echo " "; echo "Default plugins";
if (!empty($time)) { echo 'Time :' . $time . '<br />'; } //preg_match("|\d+|", $note, $task_id); //echo 'Task ID :'.$task_id[0].'<br />'; echo 'Task ID :' . $task_id . '<br />'; //var_dump($m); echo 'Msg : ' . $note . '<br />' . 'Commit Id : <a href="#">' . $commit_hash[0] . '</a><br /><br />'; $note .= '<br />Commit Id : <a href="/plugin/Git/git_commitlog.php?repo_name=' . $repo_name . '&commithash=' . $commit_hash[0] . '">' . $commit_hash[0] . '</a><br /><br />'; $q = new sqlQuery($conx); $q->query("select iduser from user where email='" . $user_email . "'"); if ($q->getNumRows() >= 1) { $q->fetch(); $iduser = $q->getData('iduser'); //echo '<br />Iduser : '******'<br /><br /><br />'; $do_plugin_enable = new PluginEnable(); $id_plugin_enable = $do_plugin_enable->isEnabled("Git Repository", $iduser); if (!empty($id_plugin_enable)) { $do_project_task = new ProjectTask(); $do_project_task->getid($task_id); if ($do_project_task->getNumRows() >= 1) { $q1 = new sqlQuery($conx); $q1->query("select * from project_discuss where idproject_task='" . $task_id[0] . "' and discuss = '" . $note . "' and iduser='******' and date_added ='" . $date_log . "'"); if ($q1->getNumRows() == 0) { $do_project_diss = new ProjectDiscuss(); $do_project_diss->addnew(); $do_project_diss->idproject_task = $task_id; $do_project_diss->discuss = $note; $do_project_diss->date_added = $date_log; if (!empty($time)) { $do_project_diss->hours_work = $time;
} ?> <?php /* echo "<pre>"; print_r($plugins_info); //print_r($plugins_info['Marketing']); echo "</pre>"; print_r($plugins_info['Marketing']['tabs']); foreach($plugins_info as $plugin){ }*/ // echo '<b>'._('Add-On').':</b><br/><br/>'; $do_plugin_enable = new PluginEnable(); $do_dynamic_button = new DynamicButton(); echo '<table width="100%">'; $plugin_name = array_keys($plugins_info); foreach ($plugin_name as $pl_name) { echo '<tr height="30px;">'; echo '<td colspan=1 width="30%">'; echo $pl_name; echo '</td>'; echo '<td colspan=2 valign="left" width="50%">'; /* print_r($plugins_info[$pl_name]);*/ //echo $plugins_info[$pl_name]['tabs']; echo '</td>'; echo '<td width=12%>'; $idplugin_enable = $do_plugin_enable->isAddOnEnabled($plugins_info[$pl_name]);
$plugin = $page_plugin; $tab_name = $tab_plugin->getTabName(); continue; } } } } if (!is_object($plugin)) { echo _('-Plug-in content page not defined, exiting now'); exit; } if (!$plugin->setCurrentPage($plugin_page_name)) { echo _('-Plug-in curent page not defined, exiting now'); exit; } $do_plugin_enable = new PluginEnable(); if ($do_plugin_enable->isEnabled(trim($tab_name)) === false) { echo _('Plugin Disabled !!!'); exit; } $pageTitle = $plugin->getPlugInName() . ' :: Ofuz'; $Author = 'SQLFusion LLC'; $Keywords = ''; $Description = ''; $background_color = 'white'; include_once 'includes/ofuz_check_access.script.inc.php'; include_once 'includes/header.inc.php'; ?> <!-- loading the Ofuz JS --> <script type="text/javascript"> //<![CDATA[