Example #1
0
        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();
Example #2
0
			</tr>
			</table>

		<?php 
    } else {
        echo "<p>No referrer data.</p>";
    }
    ?>
			
	</div>

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


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

	</div>
	
</div>


<?php 
yourls_html_footer();
Example #3
0
    yourls_html_tfooter($params);
}
yourls_table_tbody_start();
// Main Query
$where = yourls_apply_filter('admin_list_where', $where);
$url_results = $ydb->get_results("SELECT * FROM `{$table_url}` WHERE 1=1 {$where} ORDER BY `{$sort_by}` {$sort_order} LIMIT {$offset}, {$perpage};");
$found_rows = false;
if ($url_results) {
    $found_rows = true;
    foreach ($url_results as $url_result) {
        $keyword = yourls_sanitize_string($url_result->keyword);
        $timestamp = strtotime($url_result->timestamp);
        $url = stripslashes($url_result->url);
        $ip = $url_result->ip;
        $title = $url_result->title ? $url_result->title : '';
        $clicks = $url_result->clicks;
        echo yourls_table_add_row($keyword, $url, $title, $ip, $clicks, $timestamp);
    }
}
$display = $found_rows ? 'display:none' : '';
echo '<tr id="nourl_found" style="' . $display . '"><td colspan="6">' . yourls__('No URL') . '</td></tr>';
yourls_table_tbody_end();
yourls_table_end();
yourls_do_action('admin_page_after_table');
if ($is_bookmark) {
    yourls_share_box($url, $return['shorturl'], $title, $text);
}
?>
	
<?php 
yourls_html_footer();
Example #4
0
        die;
    }
}
// Insert <head> markup and all CSS & JS files
yourls_html_head();
// // Display left hand menu
// yourls_html_menu() ;
// Part to be executed if FORM has been submitted
if (isset($_REQUEST['url']) && $_REQUEST['url'] != 'http://') {
    // Display result message of short link creation
    if (isset($message)) {
        echo "<h2>{$message}</h2>";
    }
    if ($status == 'success') {
        // Include the Copy box and the Quick Share box
        yourls_share_box($url, $shorturl, $title, $text);
        // Initialize clipboard -- requires js/share.js and js/jquery.zclip.min.js to be properly loaded in the <head>
        echo "<script>init_clipboard();</script>\n";
    }
    // Part to be executed when no form has been submitted
} else {
    $site = YOURLS_SITE;
    // Display the form
    echo <<<HTML


\t\t<h2>Enter a new URL to shorten</h2>
       
\t\t<form method="post" class="form-group" action="">
\t\t <div class="col-md-4">
\t    <label for="inputdefault">Default input</label>