Panel/modules/administration/iframe.php
copilot-swe-agent[bot] 898018d204 Complete license header replacement with file purpose descriptions (675 files)
Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2025-09-05 22:46:27 +00:00

78 lines
No EOL
1.7 KiB
PHP

<?php
/*
* Component of the administration module
*/
function exec_ogp_module()
{
if(isset($_POST['default']))
{
unset($_SESSION['height']);
unset($_SESSION['width']);
}
if(isset($_SESSION['height']))$height = $_SESSION['height'];
else
{
$height = 420;
$_SESSION['height'] = $height;
}
if(isset($_SESSION['width']))$width = $_SESSION['width'];
else
{
$width = 770;
$_SESSION['width'] = $width;
}
if(isset($_POST['h_bigger']))
{
$_SESSION['height'] = $_SESSION['height'] + 50;
$height = $_SESSION['height'];
}
if(isset($_POST['h_smaller']))
{
$_SESSION['height'] = $_SESSION['height'] - 50;
$height = $_SESSION['height'];
}
if(isset($_POST['w_bigger']))
{
$_SESSION['width'] = $_SESSION['width'] + 50;
$width = $_SESSION['width'];
}
if(isset($_POST['w_smaller']))
{
$_SESSION['width'] = $_SESSION['width'] - 50;
$width = $_SESSION['width'];
}
?>
<IFRAME SRC="<?php echo $_GET['external_link']; ?>" WIDTH=<?php echo $width; ?> HEIGHT=<?php echo $height; ?> style="border:1px solid transparent;background-color:white" ></IFRAME>
<br>
<table style='text-align:center;'>
<tr>
<td colspan=3><form action="" method=POST><input type='submit' value='-H' name='h_smaller'/></form></td>
</tr>
<tr>
<td><form action="" method=POST><input type='submit' value='-W' name='w_smaller'/></form></td>
<td><form action="" method=POST><input type='submit' value='0' name='default'/></form></td>
<td><form action="" method=POST><input type='submit' value='+W' name='w_bigger'/></form></td>
</tr>
<tr>
<td colspan=3><form action="" method=POST><input type='submit' value='+H' name='h_bigger'/></form></td>
</tr>
<tr>
</tr></table>
<a href="?m=administration&p=main"><?php print_lang('back'); ?></a>
<?php
}
?>