Пример #1
0
function get_mimetype_icon_url($mimetype, $size = 32)
{
    $mimetype = str_replace('/', '-', $mimetype) . '.png';
    $path = 'resources/images/icons/mimetypes/' . $size . '/';
    $mime_basesir = public_url_for($path);
    $root = option('root_dir') . '/';
    if (file_exists($root . $path . $mimetype)) {
        return $mime_basesir . $mimetype;
    }
    $mimetype = str_replace('application-', '', $mimetype);
    if (file_exists($root . $path . $mimetype)) {
        return $mime_basesir . $mimetype;
    }
    $mimetype = 'gnome-mime-' . $mimetype;
    if (file_exists($root . $path . $mimetype)) {
        return $mime_basesir . $mimetype;
    }
}
<html>
<head>
<meta charset=utf-8 />
<title><?php 
echo $site_title;
?>
</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
</style>
<link rel="stylesheet" href="<?php 
echo public_url_for("css/base.css");
?>
" type="text/css" media="screen" />
</head>
<body>
  <header>
    <h1><?php 
echo $site_title;
?>
</h1>
  </header>
  <?php 
echo $content;
?>
  <footer>
    <p><a href="http://www.limonade-php.net/">Limonade</a>, <a href="http://www.mongodb.org/">MongoDB</a>, <a href="http://jquery.com">jQuery</a> powered.</p>
Пример #3
0
  <p class="submit">
    <input type="submit" value="Check configuration and install !" class="awesome large blue"/>
  </p>

</form>

<script type="text/javascript" src="<?php 
echo public_url_for('resources/jquery.validate/js/jquery.validate.pack.js');
?>
"></script>
<script type="text/javascript" src="<?php 
echo public_url_for('resources/jquery.validate/js/additional-methods.js');
?>
"></script>
<script type="text/javascript" src="<?php 
echo public_url_for('resources/jquery.validate/js/localisation/messages_' . option('locale')->getLanguage() . '.js');
?>
"></script>
<script type="text/javascript">

  $.fn.autoShowOptions = function () {
    $(this).each (function () {
      // Hide others conditional options
      $('.options', $(this).closest ('fieldset')).hide ();

      // Show conditional options for the selected item
      if (this.nodeName == 'SELECT')
        $('.options[id=\''+$(this).val()+'\']')
          .show ()
          .find ('input, select').trigger ('change'); // Reload sub options
      else if (this.nodeName == 'INPUT' && $(this).attr('checked')) // checkbox
Пример #4
0
    <?php 
if (option('locale')->getLanguage() != 'en') {
    ?>
      <script type="text/javascript" src="<?php 
    echo public_url_for('resources/jquery.ui/js/i18n/ui.datepicker-' . option('locale')->getLanguage() . '.js');
    ?>
"></script>
    <?php 
}
?>
    <script type="text/javascript" src="<?php 
echo public_url_for('resources/jquery.tablesorter/jquery.tablesorter.min.js');
?>
"></script>
    <script type="text/javascript" src="<?php 
echo public_url_for('resources/jquery.tablesorter/addons/pager/jquery.tablesorter.pager.js');
?>
"></script>
  </head>
  <body id="admin">

    <?php 
echo partial('layout/_header.php', isset($fz_user) ? array('fz_user' => $fz_user) : array());
?>

    <div id="content">

      <nav>
        <ul>
          <li><a href="<?php 
echo url_for('admin');
Пример #5
0
" type="text/css" media="all" />

    <?php 
if (fz_config_get('looknfeel', 'custom_css', '') != '') {
    ?>
      <link rel="stylesheet" href="<?php 
    echo public_url_for(fz_config_get('looknfeel', 'custom_css'));
    ?>
" type="text/css" media="all" />
    <?php 
}
?>

    <!--[if lte IE 8]>
    <script type="text/javascript" src="<?php 
echo public_url_for('resources/js/html5.js');
?>
"></script>
    <![endif]-->

  </head>
  <body>

    <?php 
echo partial('layout/_header.php', isset($user) ? array('user' => $user) : array());
?>

    <article class="doc">
      <h1>Documentation</h1>
      <section>
      <?php 
Пример #6
0
          <span id="your-logo">
            <img src="<?php 
    echo public_url_for(fz_config_get('looknfeel', 'your_logo'));
    ?>
"/>
          </span>
        <?php 
}
?>
        <span id="filez-header">
          <a href="<?php 
echo public_url_for('/');
?>
" id="filez-logo">
            <img src="<?php 
echo public_url_for('resources/images/filez-logo.png');
?>
" title="filez" />
          </a>
          <?php 
echo __('Share files for a limited time.');
?>
        </span>
        <span style="display: block; clear: both;"></span>
      </h1>
      <?php 
if (array_key_exists('notification', $flash)) {
    ?>
        <p class="notif ok"><?php 
    echo $flash['notification'];
    ?>
Пример #7
0
?>
' type='text/javascript'></script>
    <script src='<?php 
echo public_url_for('/js/jquery.helyenav.js');
?>
' type='text/javascript'></script>
    <script src='<?php 
echo public_url_for('/js/letsgo.js');
?>
' type='text/javascript'></script>
    <link rel="shortcut icon" type="image/x-icon" href="<?php 
echo public_url_for('/favicon.ico');
?>
">
    <link rel="icon" type="image/png" href="<?php 
echo public_url_for('/favicon.png');
?>
">
    
  </head>
  <body class='<?php 
echo $page_class;
?>
'>
    <div id='nav'>
      <ul class='main'>
        <li class='home'>
          <h2>
            <a href='<?php 
echo url_for('/');
?>
Пример #8
0
,
        progressBar: {
          enable:        <?php 
echo $use_progress_bar ? 'true' : 'false';
?>
,
          upload_id_name: '<?php 
echo $upload_id_name;
?>
',
          barImage:     '<?php 
echo public_url_for('resources/images/progressbg_green.gif');
?>
',
          boxImage:     '<?php 
echo public_url_for('resources/images/progressbar.gif');
?>
',
          refreshRate:   <?php 
echo $refresh_rate;
?>
,
          progressUrl:  '<?php 
echo url_for('upload/progress/');
?>
'
        },
        messages: {
          confirmDelete: <?php 
echo json_encode(__('Are you sure to delete this file ?'));
?>
Пример #9
0
echo public_url_for('resources/js/jquery-1.4.2.min.js');
?>
"></script>
    <script type="text/javascript" src="<?php 
echo public_url_for('resources/jquery.ui/js/jquery-ui-1.7.2.custom.min.js');
?>
"></script>
    <script type="text/javascript" src="<?php 
echo public_url_for('resources/js/qtip/jquery.qtip.pack.js');
?>
"></script>
    <?php 
if (option('locale')->getLanguage() != 'en') {
    ?>
      <script type="text/javascript" src="<?php 
    echo public_url_for('resources/jquery.ui/js/i18n/ui.datepicker-' . option('locale')->getLanguage() . '.js');
    ?>
"></script>
    <?php 
}
?>
  </head>
  <body id="admin">

    <?php 
echo partial('layout/_header.php', isset($fz_user) ? array('fz_user' => $fz_user) : array());
?>

    <div id="content">

      <nav>
Пример #10
0
    echo public_url_for('resources/jquery.ui/js/i18n/ui.datepicker-' . option('locale')->getLanguage() . '.js');
    ?>
"></script>
    <?php 
}
?>
    <script type="text/javascript" src="<?php 
echo public_url_for('resources/jquery.validate/jquery.validate.min.js');
?>
"></script>
    <script type="text/javascript" src="<?php 
echo public_url_for('resources/js/zeroclipboard/ZeroClipboard.js');
?>
"></script>
    <script type="text/javascript" src="<?php 
echo public_url_for('resources/js/filez.js');
?>
"></script>
    <script>
      function checkPortal() {
        if (top.location != self.document.location) {
          // if filez is displayed through a web portal hide logos and logout box
          document.getElementById('your-logo').style.display = 'none';
          document.getElementById('filez-logo').style.display = 'none';
          document.getElementById('auth-box').style.display = 'none';
        }
      }
    </script>
  </head>
  <body onLoad="checkPortal();">
Пример #11
0
?>
</tbody>
</table>
<div id="pager" class="pager">
	<form>
		<img src="<?php 
echo public_url_for('resources/jquery.tablesorter/addons/pager/icons/first.png');
?>
" class="first"/>
		<img src="<?php 
echo public_url_for('ressources/jquery.tablesorter/addons/pager/icons/prev.png');
?>
" class="prev"/>
		<input type="text" class="pagedisplay"/>
		<img src="<?php 
echo public_url_for('ressources/jquery.tablesorter/addons/pager/icons/next.png');
?>
" class="next"/>
		<img src="<?php 
echo public_url_for('ressources/jquery.tablesorter/addons/pager/icons/last.png');
?>
" class="last"/>
		<select class="pagesize">
			<option selected="selected"  value="10">10</option>
			<option value="20">20</option>
			<option value="30">30</option>
			<option  value="40">40</option>
		</select>
	</form>
</div>
Пример #12
0
function server_error($errno, $errstr, $errfile = null, $errline = null)
{
    $html = '<p><img src="' . public_url_for('/img/error-500.jpg') . '" alt="Erreur 500 (SERVER_ERROR)"></p>';
    set('page_title', 'Error 500 (SERVER_ERROR)');
    return html($html);
}