Example #1
0
function have_right($right)
{
    $self = $_SERVER['PHP_SELF'];
    if (isLive()) {
        $self = str_replace('/nexexcel/', '../', $self);
    } else {
        $self = str_replace('/nexexcel/', '../', $self);
    }
    return have_right_on($right, $self);
}
Example #2
0
function have_right($right)
{
    $self = $_SERVER['PHP_SELF'];
    if (isLive()) {
        $self = str_replace('/clients/shakil/', '../', $self);
    } else {
        $self = str_replace('/nexexcel/', '../', $self);
    }
    if ($self == '../transaction/delivery_chalan_resp.php') {
        $self = '../transaction/delivery_chalan.php';
    }
    return have_right_on($right, $self);
}
Example #3
0
function have_right($right)
{
    $self = $_SERVER['PHP_SELF'];
    if (isLive()) {
        $index1 = strpos($self, '/clients/');
        $index2 = strpos($self, '/', $index1 + 9);
        $client = substr($self, $index1 + 9, $index2 - ($index1 + 9));
        $self = str_replace("/clients/{$client}/", '../', $self);
    } else {
        $self = str_replace('/corpus/', '../', $self);
    }
    return have_right_on($right, $self);
}
Example #4
0
                                            Loading charts <span id="chartX"></span> of <span id="chartY"></span>...
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </li>
                    </ul>
                    <ul id="slider"><?php 
foreach ($charts as $chart) {
    ?>
                        <li>
                            <div id="chart<?php 
    echo $chart['SCREEN_ID'];
    ?>
"><?php 
    if (have_right_on('CAN_READ', $chart['URL'])) {
        ?>
                                <input type="hidden" id="chart<?php 
        echo $chart['SCREEN_ID'];
        ?>
" value="<?php 
        echo $chart['URL'];
        ?>
" class="charts" name="<?php 
        echo $chart['SCREEN_NAME'];
        ?>
" />
                                Loading ...<?php 
    } else {
        echo "You do not have sufficient rights to view this chart.";
    }
Example #5
0
        } else {
            ?>
										<td class="gauge-back" style="padding: 6px 0px 0px;" valign="top" width="860" align="center">
											<table width="802" border="0" cellpadding="0" cellspacing="0"><?php 
        }
        ?>
												<tbody>
													<tr>
														<td class="gauge-header" valign="middle" align="center" height="33"><?php 
        echo $chart['screen_name'];
        ?>
</td>
													</tr>
													<tr>
														<td valign="middle" align="center"><?php 
        if (have_right_on('can_read', $chart['url'])) {
            include $chart['url'];
        } else {
            echo "You do not have sufficient rights to view this chart.";
        }
        ?>
</td>
													</tr>
												</tbody>
											</table>
										</td><?php 
        if ($chart['options'] == 1 && $count % 2 == 0) {
            ?>
										<td valign="middle" width="32" align="center" height="272">&nbsp;</td><?php 
            $count++;
        } else {