Esempio n. 1
0
">
    <?}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');
?>
</a></span> | <span class="bluelink"><a href="#" onclick="fnSelNone(); return false;"><?php 
Esempio n. 2
0
$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());
                if ($tab->isActive() === true && $idplugin_enabled !== false) {
                    $tab->processTab();
                }
            }
        }
    }
}
?>
        </div>
        <!-- <div class="layout_navbar_right">
        <?php 
//$arrRightTabs[] = array('Sync', '/sync.php');
//$arrRightTabs[] = array('Blog', 'http://www.ofuz.com/blog/');
/*
foreach ($arrRightTabs as $arrTab) {
Esempio n. 3
0
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();
                    }
                }
            }
        }
    }
}
Esempio n. 4
0
     echo '<tr>';
     echo '<td colspan=4>';
     echo '<div class="dashedline"></div>';
     echo '</td>';
     echo '</tr>';
 } else {
     echo '<table width="100%">';
     echo '<tr height="30px;">';
     echo '<td colspan=1>';
     echo $tab_name;
     echo '</td>';
     echo '<td colspan=2 valign="left">';
     echo '</td>';
     echo '<td width=12%>';
     // Enable or disable section comes here
     $idplugin_enable = $do_plugin_enable->isEnabled($tab_name);
     if ($idplugin_enable === false) {
         $button = $do_dynamic_button->CreateButton('', _('Enable'));
         $e_enable = new Event('PluginEnable->eventEnablePlugin');
         $e_enable->addParam('goto', $_SERVER['PHP_SELF']);
         $e_enable->addParam('plugin', $tab_name);
         echo $e_enable->getLink(_('Enable'));
         //echo $e_enable->getLink($button);
     } else {
         $button = $do_dynamic_button->CreateButton('', _('Disable'));
         $e_enable = new Event('PluginEnable->eventDisablePlugin');
         $e_enable->addParam('goto', $_SERVER['PHP_SELF']);
         $e_enable->addParam('idplugin_enable', $idplugin_enable);
         echo $e_enable->getLink(_('Disable'));
         //echo $e_enable->getLink($button);
     }
Esempio n. 5
0
     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;
                 }
Esempio n. 6
0
                $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[
	<?php