mirror of
https://github.com/e107inc/e107.git
synced 2025-08-18 20:31:41 +02:00
Tidy up a few lurking bugs
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
<?php
|
||||
|
||||
if(!function_exists('e_userprofile_links_page')){
|
||||
function e_userprofile_links_page(){
|
||||
if(!function_exists('e_userprofile_links_page'))
|
||||
{
|
||||
function e_userprofile_links_page()
|
||||
{
|
||||
global $qs, $sql, $tp;
|
||||
|
||||
$id=intval($qs[1]);
|
||||
include_lan(e_PLUGIN."links_page/languages/".e_LANGUAGE.".php"); // Need the LAN file in some places even if no links found
|
||||
|
||||
$qry = "
|
||||
SELECT l.*, lc.*
|
||||
@@ -18,23 +21,32 @@ if(!function_exists('e_userprofile_links_page')){
|
||||
$text = '';
|
||||
|
||||
$total = $sql -> db_Select_gen($qry);
|
||||
if($sql -> db_Select_gen($qry1)){
|
||||
include_lan(e_PLUGIN."links_page/languages/".e_LANGUAGE.".php");
|
||||
while($row = $sql -> db_Fetch()){
|
||||
|
||||
if ($sql -> db_Select_gen($qry1))
|
||||
{
|
||||
while ($row = $sql -> db_Fetch())
|
||||
{
|
||||
$LINK_APPEND = "<a class='linkspage_url' href='".$row['link_url']."' onclick=\"open_window('".e_PLUGIN."links_page/links.php?view.".$row['link_id']."','full');return false;\" >";
|
||||
|
||||
$icon = $LINK_APPEND."<img class='linkspage_button' style='width:50px; height:50px;' src='".e_PLUGIN."links_page/images/blank.gif' alt='' /></a>";
|
||||
if ($row['link_button']) {
|
||||
if (strpos($row['link_button'], "http://") !== FALSE) {
|
||||
if ($row['link_button'])
|
||||
{
|
||||
if (strpos($row['link_button'], "http://") !== FALSE)
|
||||
{
|
||||
$icon = $LINK_APPEND."<img class='linkspage_button' src='".$row['link_button']."' alt='' /></a>";
|
||||
} else {
|
||||
if(strstr($row['link_button'], "/")){
|
||||
if(is_readable(e_BASE.$row['link_button'])){
|
||||
}
|
||||
else
|
||||
{
|
||||
if(strstr($row['link_button'], "/"))
|
||||
{
|
||||
if(is_readable(e_BASE.$row['link_button']))
|
||||
{
|
||||
$icon = $LINK_APPEND."<img class='linkspage_button' style='width:50px; height:50px;' src='".e_BASE.$row['link_button']."' alt='' /></a>";
|
||||
}
|
||||
}else{
|
||||
if(is_readable(e_PLUGIN."links_page/link_images/".$row['link_button'])){
|
||||
}
|
||||
else
|
||||
{
|
||||
if(is_readable(e_PLUGIN."links_page/link_images/".$row['link_button']))
|
||||
{
|
||||
$icon = $LINK_APPEND."<img class='linkspage_button' style='width:50px; height:50px;' src='".e_PLUGIN."links_page/link_images/".$row['link_button']."' alt='' /></a>";
|
||||
}
|
||||
}
|
||||
|
@@ -1,12 +1,13 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
|
||||
<!-- $Id: plugin.xml,v 1.1 2008-12-13 16:06:11 e107steved Exp $ -->
|
||||
<!-- $Id: plugin.xml,v 1.2 2008-12-17 20:26:57 e107steved Exp $ -->
|
||||
|
||||
<e107Plugin name="LCLAN_PLUGIN_LAN_1" version="1.12" compatibility="0.8" installRequired="true">
|
||||
<author name="e107devs" url="http://e107.org" />
|
||||
<description>Links Page For Displaying External Web Links</description>
|
||||
<folder>links_page</folder>
|
||||
<copyright>Copyright e107 Inc e107.org, Licensed under GPL (http://www.gnu.org/licenses/gpl.txt)</copyright>
|
||||
<logLanguageFile filename="languages/--LAN--_admin_links_page.php" />
|
||||
<administration>
|
||||
<configFile>admin_linkspage_config.php</configFile>
|
||||
<icon>images/linkspage_32.png</icon>
|
||||
|
Reference in New Issue
Block a user