Esempio n. 1
0
 public function logout()
 {
     $this->auth->logout(true);
     $this->session->create();
     Session::instance()->set_flash('flash', SubfolioLanguage::get_text('logout_complete'));
     url::redirect('/');
     exit;
 }
Esempio n. 2
0
    ?>
</h1>
	<?php 
} else {
    ?>
		<h1 class="h1"><?php 
    echo Subfolio::current_file('filename');
    ?>
</h1> 
	<?php 
}
?>
</header>

<?php 
if (!SubfolioFiles::is_root()) {
    ?>
	<nav>
		<span class='parent_dir'><?php 
    echo SubfolioFiles::parent_link(SubfolioLanguage::get_text('parent_directory'));
    ?>
</span>
		<span class='prev_next'>
			<?php 
    echo SubfolioFiles::previous_link_or_span(SubfolioLanguage::get_text('previous'), SubfolioLanguage::get_text('previous_directory'), 'previous', 'faded');
    echo SubfolioFiles::next_link_or_span(SubfolioLanguage::get_text('next'), SubfolioLanguage::get_text('next_directory'), 'next', 'faded');
    ?>
		</span>	
	</nav>
<?php 
}
Esempio n. 3
0
<?php

if (SubfolioFiles::have_related()) {
    ?>
	
	<div id="related">
		<p><?php 
    echo SubfolioLanguage::get_text('seealso');
    ?>
</p>
		<ul class="<?php 
    echo SubfolioTheme::get_listing_mode();
    ?>
">
			
			<?php 
    foreach (SubfolioFiles::related() as $item) {
        ?>
				<li>
					<a href='<?php 
        echo $item['link'];
        ?>
'>
						<?php 
        if (SubfolioTheme::get_option('display_icons')) {
            ?>
  						<?php 
            if ($item['restricted']) {
                ?>
						  <span class="<?php 
                if ($item['have_access']) {
Esempio n. 4
0
?>

		<?php 
if (SubfolioTheme::get_option('display_collapse_header') && SubfolioTheme::get_option('display_header', true)) {
    echo SubfolioTheme::get_collapse_header_button('li');
}
?>
  </ul>
</div>
 
<?php 
if (SubfolioTheme::get_option('display_navigation')) {
    ?>
  <?php 
    require "prev_next.inc.php";
}
?>

<script>
$(document).ready(function(){
  expand_header_label = "<?php 
echo SubfolioLanguage::get_text('expandheader');
?>
";
  collapse_header_label = "<?php 
echo SubfolioLanguage::get_text('collapseheader');
?>
";
});
</script>
Esempio n. 5
0
		<dt><?php 
echo SubfolioLanguage::get_text('kind');
?>
</dt><dd><?php 
echo Subfolio::current_file('kind');
?>
</dd>
		<dt><?php 
echo SubfolioLanguage::get_text('lastmodified');
?>
</dt><dd><?php 
echo Subfolio::current_file('lastmodified');
?>
</dd>
		<dt><?php 
echo SubfolioLanguage::get_text('size');
?>
</dt><dd><?php 
echo Subfolio::current_file('size');
?>
</dd>
		<dt><?php 
echo SubfolioLanguage::get_text('comment');
?>
</dt><dd><?php 
echo Subfolio::current_file('comment');
?>
</dd>
	</dl>
	
</div>
Esempio n. 6
0
echo SubfolioLanguage::get_text('size');
?>
</dt><dd><?php 
echo Subfolio::current_file('size');
?>
</dd>
		<dt><?php 
echo SubfolioLanguage::get_text('comment');
?>
</dt><dd><?php 
echo Subfolio::current_file('comment');
?>
</dd>
	</dl>
	<p id='instructions'><?php 
echo Subfolio::current_file('instructions');
?>
</p>
	<a id="download" href="<?php 
echo Subfolio::current_file('link');
?>
?download=true" target="<?php 
echo Subfolio::current_file('target');
?>
"><?php 
echo SubfolioLanguage::get_text('downloadfile');
?>
</a>
	<!-- Link_name can be open or download. These words taken from the language file... -->
	
</div>
Esempio n. 7
0
$copyright = SubfolioTheme::get_site_copyright();
if ($copyright != '') {
    ?>
	<span class='copyright'><?php 
    echo $copyright;
    ?>
</span>
	<?php 
}
?>

	<?php 
if (!SubfolioTheme::get_mobile_viewport() && SubfolioTheme::get_option('display_updated_since')) {
    ?>
		<span><?php 
    echo SubfolioLanguage::get_text('updated_since');
    ?>
</span>
		<?php 
    echo SubfolioFiles::updated_since_link_or_span('lastweek');
    ?>
		<span class="updated_since_sep">&#8226;</span>
		<?php 
    echo SubfolioFiles::updated_since_link_or_span('lastmonth');
    ?>
		<span class="updated_since_sep">&#8226;</span>
		<?php 
    echo SubfolioFiles::updated_since_link_or_span('lastvisit');
    ?>
	<?php 
}
Esempio n. 8
0
<span class='big_lock'>!</span>
<p>
	<?php 
echo SubfolioLanguage::get_text('accessdenied');
?>
<br/>
	<a href="/login"><?php 
echo SubfolioLanguage::get_text('loginasadifferentuser');
?>
</a>
</p>
Esempio n. 9
0
<span class='big_exclam'>!</span>
<p>
	<?php 
echo SubfolioLanguage::get_text('notfound');
?>
<br/>
	<?php 
echo SubfolioLanguage::get_text('check_url_go_back', SubfolioFiles::parent_link('Parent Directory'));
?>
</p>
Esempio n. 10
0
</span><?php 
        }
        ?>
							
					</a>
				</li>
			<?php 
    }
    ?>
			
		</ul>
		
	</div><!-- listing -->

<?php 
} else {
    ?>
  <?php 
    if (SubfolioFiles::is_empty_folder()) {
        ?>
  	<p><?php 
        echo SubfolioLanguage::get_text('emptyfolder');
        ?>
</p>
  <?php 
    }
    ?>
	

<?php 
}
Esempio n. 11
0
</label>
			<input type="text" value="" id="username" name="username" class="field" tabindex="1" />
		</div>
		<script type="text/javascript">
			document.getElementById('username').focus();
		</script>
		<div class="login_field">
			<label><?php 
echo SubfolioLanguage::get_text('password');
?>
</label>
			<input type="password"  value="" id="password" name="password" class="field" tabindex="2" />
		</div>
		
		<div class="checkbox">
			<input id="remember_me" type="checkbox" value="1" name="remember" tabindex="4" CHECKED />
			<label for="remember_me"><?php 
echo SubfolioLanguage::get_text('remember_my_login');
?>
</label>
		</div>
		<div class="subButton copy">
			<input id="contact_submit" type="submit" value="<?php 
echo SubfolioLanguage::get_text('submit');
?>
" name="commit"/>
		</div>
		
	</form>

</div>
Esempio n. 12
0
        ?>
			<a href="<?php 
        echo Subfolio::current_file('link');
        ?>
" class="btn btn_download"><?php 
        echo SubfolioLanguage::get_text('viewfile');
        ?>
</a>
	<?php 
    }
}
?>
	
	<!-- Minisite -->
	<?php 
if (Subfolio::current_file('icon_name') == 'site') {
    ?>
 
		<a href="<?php 
    echo Subfolio::current_file('link');
    ?>
" class="btn btn_download"><?php 
    echo SubfolioLanguage::get_text('viewsite');
    ?>
</a>
	<?php 
}
?>
	
</div>
Esempio n. 13
0
 public function updated_since_link_or_span($type)
 {
     $ls = "";
     $updated_since = Subfolio::$filebrowser->get_updated_since();
     if ($type == "lastweek") {
         if ($updated_since == "lastweek") {
             $ls = "<span>" . SubfolioLanguage::get_text('last_week') . "</span>";
         } else {
             $ls = "<a href=\"?updated_since=lastweek\">" . SubfolioLanguage::get_text('last_week') . "</a>";
         }
     }
     if ($type == "lastmonth") {
         if ($updated_since == "lastmonth") {
             $ls = "<span>" . SubfolioLanguage::get_text('last_month') . "</span>";
         } else {
             $ls = "<a href=\"?updated_since=lastmonth\">" . SubfolioLanguage::get_text('last_month') . "</a>";
         }
     }
     if ($type == "lastvisit") {
         if ($updated_since == "lastvisit") {
             $ls = "<span>" . SubfolioLanguage::get_text('my_last_visit') . "</span>";
         } else {
             $ls = "<a href=\"?updated_since=lastvisit\">" . SubfolioLanguage::get_text('my_last_visit') . "</a>";
         }
     }
     return $ls;
 }