Viewing file: embed.php (3.08 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
* Copyright 2008 Grestul Group
* Powered by Grestul
**/
?>
<?php session_start();
define('GRESTUL_ROOT', dirname(dirname(__FILE__))."/");
require "inc/config.php";
require GRESTUL_ROOT.'/inc/settings.php';
if(!isset($_SESSION['loggedin'])) {
header('Location: index.php?error=1');
exit();
}
// Let's make the auto hieght
if ($per_page =="1")
($hieght =(800 * $per_page));
else if($per_page =="10")
$hieght = "1400";
else if ($per_page > 10)
($hieght =(+130 * $per_page));
else
$hieght = (+180 * $per_page);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title><?php echo "$webad"; ?></title>
<link href="inc/admin.css" rel="stylesheet" type="text/css" />
<link href="inc/general.css" rel="stylesheet" type="text/css" />
</head>
<body>
<img src="inc/images/logo.png" class="logo" />
<div class="logout"><a href="close.php">Logout</a></div>
<div class="navi">
<a href="home.php"><img src="inc/images/homeoff.png" class="navihoff" /></a>
<a href="management.php"><img src="inc/images/manageon.png" class="navion" /></a>
<a href="stylehome.php"><img src="inc/images/styleoff.png" class="navioff" /></a>
</div>
<div class="contentrep">
<div class="infobar">
<div class="infotext">
Here, you can embed the comment system onto any page on your site. Follow the 3 easy steps below for a safe embed.</div>
</div>
<div class="btite">
Management - Embed System
</div>
<div class="smalltite">
Follow the instructions for a safe embed
</div>
<div class="bodycontent">
<fieldset>
<legend>Embed</legend>
<b>Instructions:</b><br />
The code below has already been auto-configured. This means, Grestul tried its best to set the hieght and domain automatically.
The Grestul calculator isn't perfect, and the hieght may sometimes be over calculated. We are working on a more sophisticated calculater which should be released in the near future.
<br />To embed, copy and paste this code between the <i>body</i> tags in any webpage.
<br /><br />
<textarea name="embed" cols="80" rows="10">
<iframe height="<?php echo "$hieght"; ?>" allowTransparency="true" frameborder="0"
scrolling="no" style="width:100%;border:none;"
src="<?php echo "$domain"; ?>"
title="Comments"><a href="<?php echo "$domain"; ?>"
title="Comments">comments</a></iframe>
</textarea>
</fieldset>
</div>
</div>
<div class="footer">
<!-- DO NOT CHANGE, REMOVE, OR HINDER WITH THE COPYRIGHT OR POWERED BY LINES BELOW -->
<!-- YOU AGREED TO THE AGREEMENT WHEN YOU DOWNLOADED AND INSTALLED OUR SOFTWARE -->
<!-- REMOVING THE LINES BELOW WILL FORCE US TO TAKE LEGAL ACTION -->
<!-- BE FAIR AND KEEP THE POWERED BY AND COPYRIGHT LINES. -->
Powered By: <a href="http://grestul.com" target="_blank">Grestul,</a> Copyright © 2008 <a href="http://grestul.com" target="_blank">Grestul Group.</a>
</div>
</body>
</html>
|