$('button#short-copy').zclip({
        path:'js/ZeroClipboard.swf',
        copy:function(){return $('input#short-copy').val();},
        afterCopy: function() {
        	$("button#short-copy").html('<?php 
    yourls_e('Copied!', 'isq_translation');
    ?>
');
        }
    });
    $('button#stats-copy').zclip({
        path:'js/ZeroClipboard.swf',
        copy:function(){return $('input#stats-copy').val();},
        afterCopy: function() {
        	$("button#stats-copy").html('<?php 
    yourls_e('Copied!', 'isq_translation');
    ?>
');
        }
    });
});
</script>
<?php 
}
?>
</head>

<body>

<nav class="navbar navbar-default">
  <div class="container-fluid">
        echo '<p>' . yourls__('No referrer data.') . '</p>';
    }
    ?>
			
	</div>
</div><!--/panel-body -->
</div><!--/panel -->

<?php 
}
// endif do log redirect
?>


	<div id="stat_tab_share" class="tab">
		<h2><?php 
yourls_e('Share');
?>
</h2>
		
		<?php 
yourls_share_box($longurl, yourls_link($keyword), $title, '', '<h3>' . yourls__('Short link') . '</h3>', '<h3>' . yourls__('Quick Share') . '</h3>');
?>

	</div>
	
</div>


<?php 
yourls_html_footer();
Beispiel #3
0
/**
 * Display the login screen. Nothing past this point.
 *
 */
function yourls_login_screen($error_msg = '')
{
    yourls_html_head('login');
    $action = isset($_GET['action']) && $_GET['action'] == 'logout' ? '?' : '';
    yourls_html_logo();
    ?>
	<div id="login">
		<form method="post" action="<?php 
    echo $action;
    ?>
"> <?php 
    // reset any QUERY parameters
    ?>
			<?php 
    if (!empty($error_msg)) {
        echo '<p class="error">' . $error_msg . '</p>';
    }
    ?>
			<p>
				<label for="username"><?php 
    yourls_e('Username');
    ?>
</label><br />
				<input type="text" id="username" name="username" size="30" class="text" />
			</p>
			<p>
				<label for="password"><?php 
    yourls_e('Password');
    ?>
</label><br />
				<input type="password" id="password" name="password" size="30" class="text" />
			</p>
			<p style="text-align: right;">
				<input type="submit" id="submit" name="submit" value="<?php 
    yourls_e('Login');
    ?>
" class="button" />
			</p>
		</form>
		<script type="text/javascript">$('#username').focus();</script>
	</div>
	<?php 
    yourls_html_footer();
    die;
}
Beispiel #4
0
    $sign = md5($time . yourls_auth_signature());
    echo $sign;
    ?>
"</tt>
?> 
</code></pre>
		<p><?php 
    yourls_e('Now use parameters <tt>signature</tt> and <tt>timestamp</tt> in your API requests. Example:');
    ?>
</p>
		<p><code><?php 
    echo YOURLS_SITE;
    ?>
/yourls-api.php?timestamp=<strong>$timestamp</strong>&signature=<strong>$signature</strong>&action=...</code></p>
		<p><?php 
    yourls_e('Actual values:');
    ?>
<br/>
		<tt><?php 
    echo YOURLS_SITE;
    ?>
/yourls-api.php?timestamp=<?php 
    echo $time;
    ?>
&signature=<?php 
    echo $sign;
    ?>
&action=...</tt></p>
		<p><?php 
    yourls_se('This URL would be valid for only %s seconds', YOURLS_NONCE_LIFE);
    ?>
Beispiel #5
0
        yourls_e('Verification', 'isq_translation');
        ?>
</label></p>
					<p><label class="secondary"><?php 
        yourls_e('reCAPTCHA verification used to ensure you are not a bot.', 'isq_translation');
        ?>
</label></p>
					<div class="g-recaptcha" data-sitekey="<?php 
        echo ISQ::$recaptcha['sitekey'];
        ?>
"></div>
				</div>
			<?php 
    } else {
        echo '<input type="hidden" name="antispam_method" value="basic" class="hidden">';
        echo '<input type="hidden" name="basic_antispam" class="hidden">';
    }
}
?>

		<div class="form-item submit-container">
			<input type="submit" class="button" value="<?php 
yourls_e('Shorten', 'isq_translation');
?>
">
		</div>
	</form>
</div>

<?php 
include 'footer.php';
Beispiel #6
0
            ?>
</p>
			<p><?php 
            yourls_e("Nothing awful <em>should</em> happen, but this doesn't mean it <em>won't</em> happen, right? ;)");
            ?>
</p>
			<p><?php 
            yourls_e("On every step, if <span class='error'>something goes wrong</span>, you'll see a message and hopefully a way to fix.");
            ?>
</p>
			<p><?php 
            yourls_e('If everything goes too fast and you cannot read, <span class="success">good for you</span>, let it go :)');
            ?>
</p>
			<p><?php 
            yourls_e('Once you are ready, press "Upgrade" !');
            ?>
</p>
			<?php 
            echo "\n\t\t\t<form action='upgrade.php?' method='get'>\n\t\t\t<input type='hidden' name='step' value='1' />\n\t\t\t<input type='hidden' name='oldver' value='{$oldver}' />\n\t\t\t<input type='hidden' name='newver' value='{$newver}' />\n\t\t\t<input type='hidden' name='oldsql' value='{$oldsql}' />\n\t\t\t<input type='hidden' name='newsql' value='{$newsql}' />\n\t\t\t<input type='submit' class='primary' value='" . yourls_esc_attr__('Upgrade') . "' />\n\t\t\t</form>";
            break;
        case 1:
        case 2:
            $upgrade = yourls_upgrade($step, $oldver, $newver, $oldsql, $newsql);
            break;
        case 3:
            $upgrade = yourls_upgrade(3, $oldver, $newver, $oldsql, $newsql);
            echo '<p>' . yourls__('Your installation is now up to date ! ') . '</p>';
            echo '<p>' . yourls_s('Go back to <a href="%s">the admin interface</a>', yourls_admin_url('index.php')) . '</p>';
    }
}
if (ISQ::$social['googleplus']) {
    echo '<span onclick="window.open(\'https://plus.google.com/share?url=' . $encoded_shorturl . '\',\'_blank\',\'width=550,height=380\')" class="button social-button googleplus" title="Share on LinkedIn">' . file_get_contents('public/images/googleplus.svg') . '</span>';
}
?>
		
	</div>

	<?php 
if (ISQ::$general['qr']) {
    ?>
		<!-- QR code -->
		<h2><?php 
    yourls_e('QR code', 'isq_translation');
    ?>
</h2>
		<p><?php 
    yourls_e('Share your link with external devices', 'isq_translation');
    ?>
</p>
	
	<?php 
    // PHP QR Code is LGPL licensed
    include 'public/phpqrcode/qrlib.php';
    echo QRcode::svg($shorturl, 'url-qr-code', false, QR_ECLEVEL_L, '600');
}
?>

</div>

<?php 
include 'footer.php';
Beispiel #8
0
	$('#toggle_plugins').css({'background':'transparent url("../images/filter.gif") top left no-repeat','display':'inline-block','text-indent':'-9999px','width':'16px','height':'16px','margin-left':'3px','cursor':'pointer'})
		.attr('title', '<?php 
    echo yourls_esc_attr__('Toggle active/inactive plugins');
    ?>
')
		.click(function(){
			$('#main_table tr.inactive').toggle();
		});
	<?php 
}
?>
	</script>
	
	<p><?php 
yourls_e('If something goes wrong after you activate a plugin and you cannot use YOURLS or access this page, simply rename or delete its directory, or rename the plugin file to something different than <code>plugin.php</code>.');
?>
</p>
	
	<h3><?php 
yourls_e('More plugins');
?>
</h3>
	
	<p><?php 
yourls_e('For more plugins, head to the official <a href="http://yourls.org/pluginlist">Plugin list</a>.');
?>
</p>

	
<?php 
yourls_html_footer();
Beispiel #9
0
		
		</div>

		<p class="desktop-only"><?php 
yourls_e('Click on a link and press Ctrl+C to quickly copy it.', 'isq_translation');
?>
</p>
	</div>

	<!-- Social sharers -->
	<h2><?php 
yourls_e('Share', 'isq_translation');
?>
</h2>
	<p><?php 
yourls_e('Share your short URL', 'isq_translation');
?>
</p>
	<div class="social-sharing">
		<?php 
if (ISQ::$social['twitter']) {
    echo '<span onclick="window.open(\'https://twitter.com/intent/tweet?url=' . $encoded_shorturl . '&text=' . $encoded_title . '\',\'_blank\',\'width=550,height=380\')" class="button social-button twitter" title="Share on Twitter">' . file_get_contents('public/images/twitter.svg') . '</span>';
}
if (ISQ::$social['appdotnet']) {
    echo '<span onclick="window.open(\'https://account.app.net/intent/post/?text=' . $encoded_title . '&url=' . $encoded_shorturl . '\',\'_blank\',\'width=550,height=380\')" class="button social-button appdotnet" title="Share on App.net">' . file_get_contents('public/images/appdotnet.svg') . '</span>';
}
if (ISQ::$social['facebook']) {
    echo '<span onclick="window.open(\'https://www.facebook.com/sharer/sharer.php?u=' . $shorturl . '\',\'_blank\',\'width=550,height=380\')" class="button social-button facebook" title="Share on Facebook">' . file_get_contents('public/images/facebook.svg') . '</span>';
}
if (ISQ::$social['tumblr']) {
    echo '<span onclick="window.open(\'http://www.tumblr.com/share/link?url=' . $encoded_shorturl . '&name=' . $encoded_title . '\',\'_blank\',\'width=550,height=380\')" class="button social-button tumblr" title="Share on Tumblr">' . file_get_contents('public/images/tumblr.svg') . '</span>';