Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: pd_warning

Parašė xFlow· 2011 Lie. 4 23:07:20
#1

Ar galit kasnors ištaisyti šituos errorus?

warning.php
http://ikelk.lt/storage/images/0...al_img.JPG
http://ikelk.lt/storage/images/0...al_img.JPG

<?php
/***************************************************************************
   pd Warning

   Copyright (C) 2007 pirdani (Daniel Zschintzsch)
   kontakt@pirdani.de
   http://www.pirdani.de

        Anpassung an V7
        Copyright (C) 2008
        Dirk Heise (emblinux)
        webmaster@heiseclan.de
        http://www.heiseclan.de

   PHP-Fusion
   Copyright © 2002 - 2007 Nick Jones
   http://www.php-fusion.co.uk/

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.
***************************************************************************/

require_once "../../maincore.php";
require_once THEMES."templates/header.php";

// load locale
if (file_exists(INFUSIONS."pd_warning/locale/".LOCALESET."index.php"))
  {
    include INFUSIONS."pd_warning/locale/".LOCALESET."index.php";
  }
else
  {
    include INFUSIONS."pd_warning/locale/German/index.php";
  }

include_once(INFUSIONS."pd_warning/warning.inc.php");

if (isset( $_GET['postid'] ) )
  {
    $postid = $_GET['postid'];
  }
else if(isset( $_POST['postid'] ) )
  {
    $postid = $_POST['postid'];
  }
else
  {
    $postid = 0;
  }

if (isset( $_GET['warnid'] ) )
  {
    $warnid = $_GET['warnid'];
  }
else if(isset( $_POST['warnid'] ) )
  {
    $warnid = $_POST['warnid'];
  }
else
  {
    $warnid = 0;
  }

if (isset( $_GET['lookup'] ) )
  {
    $lookup = $_GET['lookup'];
  }
else if(isset( $_POST['lookup'] ) )
  {
    $lookup = $_POST['lookup']; 
  }
else
  {
    $lookup = 0;
  }

$warn_post_id = FALSE;
$warn_user_id = 0;

if ($postid)
  {
    if (!is_numeric($postid))
      {   
   redirect(BASEDIR."index.php");
      }
    else
      {
   $sql_warnings_by_postid = dbquery("SELECT * FROM ".$db_prefix."posts WHERE post_id='".$postid."'");
   if(dbrows($sql_warnings_by_postid)!=1) { redirect(BASEDIR."index.php"); }
   $data_warnings_by_postid = dbarray($sql_warnings_by_postid);
   $warn_post_id = $data_warnings_by_postid['post_id'];
   $warn_user_id = $data_warnings_by_postid['post_author'];
      }
  }
else
  {
    if ( $lookup )
      {
   if ( !is_numeric( $lookup ) )
     {
       redirect(BASEDIR."index.php");
     }
   else
     {
       $warn_post_id = FALSE;
       $warn_user_id = $lookup;
     }
   }
  }

if ( isset($_POST['btnSubmitWarning']) && !empty($_POST['warn_subject']) && !empty($_POST['warn_message']) && checkgroup($right_group) )
  {
    if ( isset($_POST['warnid']) )
      {
   if(!is_numeric($_POST['warnid'])) { redirect(BASEDIR."index.php"); }
   editWarning($_POST['warnid'], $_POST['warn_subject'], $_POST['warn_message'], $_POST['warn_point']);
      }
    else
      {
        if ( isset($_POST['postid']) && $_POST['postid']>0 )
   {
   if ( new_warning_post($_POST['postid'], $_POST['warn_subject'], $_POST['warn_message'], ($_POST['warn_point']=="" ? warning_points($_POST['warn_subject']) : $_POST['warn_point']))==FALSE )
     {
      opentable($locale['PDWA400']);
      echo "<br /><center>".$locale['PDWA401']."</center><br /><br />";
      closetable();
     }
   }
      }
  }

if(isset($_GET['opt']) && $_GET['opt']=="delete" && checkgroup($right_group))
{
   if(!is_numeric($_GET['warnid'])) {
      redirect(BASEDIR."index.php");
   } else {
      delete_warning($_GET['warnid']);
   }
}

if (checkgroup($right_group) AND ( ($warn_post_id!=FALSE) ) OR ( isset($_GET['opt']) && $_GET['opt']=="edit" ) )
  {
    echo "<form action='".INFUSIONS."pd_warning/warning.php' method='POST'>";
   
    echo ($warn_post_id!=FALSE ? "<input type='hidden' name='postid' value='".$warn_post_id."'>" : "<input type='hidden' name='lookup' value='".$warn_user_id."'>")."";

    if ( isset($_GET['opt']) && $_GET['opt']=="edit")
      {
      $editwarndata = dbarray(getWarningSQLbyID($warnid));
      echo "<input type='hidden' name='warnid' value='".$warnid."'>";
      $form_titel = $locale['PDWA402'];
      $form_subject = $editwarndata['warn_subject'];
      $form_message = $editwarndata['warn_message'];
      $form_points = $editwarndata['warn_point'];
      $form_submit = $locale['PDWA403'];
   } else {
      echo "<input type='hidden' name='postid' value='".$warn_post_id."'>";
      $form_titel = $locale['PDWA404'];
      $form_subject = NULL;
      $form_message = NULL;
      $form_points = NULL;
      $form_submit = $locale['PDWA405'];
   }
   
   opentable($form_titel);
      echo "<br>
      <table width='80%' cellpadding='2' cellspacing='0' border='0' align='center'>
         <tr class='tbl2'>
            <td align='left' valign='top' width='140'>".$locale['PDWA406']."</td>
            <td align='left' valign='top'>
               <select name='warn_subject' class='textbox' style='width:100%;'>";
                  $warn_catalog = dbquery("SELECT * FROM ".DB_PDWARNING_CATALOG." ORDER BY warn_point, warn_subject");
                  while($wcdata = dbarray($warn_catalog)) {
                     echo "<option ".($form_subject==$wcdata[warn_id] ? "selected" : "")." value='".$wcdata[warn_id]."'>".$wcdata[warn_subject]." (".$wcdata[warn_point].")</option>";
                  }
echo "        </select>
            </td>
         </tr>
         <tr>
            <td align='left' valign='top' width='140'>".$locale['PDWA407']."</td>
            <td align='left' valign='top'><textarea class='textbox' style='width:100%; height:50px;' name='warn_message'>".$form_message."</textarea></td>
         </tr>
         <tr class='tbl2'>
            <td align='left' valign='top' width='140'>".$locale['PDWA408']."</td>
            <td align='left' valign='top'><input type='text' class='textbox' name='warn_point' value='".$form_points."' maxlength='3' size='5'> ".$locale['PDWA409']."</td>
         </tr>
         <tr>
            <td align='left' valign='top' width='140'></td>
            <td align='right' valign='top'><input type='submit' name='btnSubmitWarning' value='".$form_submit."' class='textbox'></td>
         </tr>
      </table>
      </form>
      <br />";
   closetable();
   tablebreak();
}

   
//show valid warnings
$sql_warning_archiv = getWarningSQL("user_id = '".$warn_user_id."' ORDER BY warn_datestamp");
$count_zzz = 0;
$count_verwarn_points = 0;
while ($data_warning_archiv = dbarray($sql_warning_archiv))
     {
   $data_warning_archiv2 = dbarray(dbquery("SELECT * FROM ".DB_PDWARNING_CATALOG." WHERE warn_id='".$data_warning_archiv['warn_subject']."'"));
   if(($data_warning_archiv['warn_datestamp']+($data_warning_archiv2['warn_length']*86400))>date("U"))
     {
       if ($count_zzz==0)
         {
         opentable($locale['PDWA410']." (".warning_user($warn_user_id).")");
         echo "<table width='80%' cellpadding='2' cellspacing='0' border='0' align='center'>";
         }
       echo "<tr>
         <td colspan='2' align='left' valign='top'>&nbsp;</td>
        </tr>
        <tr class='tbl2'>
         <td align='left' valign='top'>
          <b>".warning_subject($data_warning_archiv['warn_subject'])."</b>
         </td>
         <td align='right' valign='top'>";
         if(checkgroup($right_group))
           {
             echo "
               <a href='".INFUSIONS."pd_warning/warning.php?".($warn_post_id=="" ? "lookup=".$warn_user_id : "postid=".$warn_post_id)."&amp;warnid=".$data_warning_archiv['warn_id']."&amp;opt=edit'><img src='".INFUSIONS."pd_warning/images/edit.gif' alt='".$locale['PDWA411']."' title='".$locale['PDWA411']."' border='0'></a>
               <a href='".INFUSIONS."pd_warning/warning.php?".($warn_post_id=="" ? "lookup=".$warn_user_id : "postid=".$warn_post_id)."&amp;warnid=".$data_warning_archiv['warn_id']."&amp;opt=delete'><img src='".INFUSIONS."pd_warning/images/delete.gif' alt='".$locale['PDWA412']."' title='".$locale['PDWA412']."' border='0'></a>";
           }
            echo " </td>
        </tr>
        <tr>
         <td align='left' valign='top'>
          <small>";
          if ( $data_warning_archiv['post_id']>0 )
             echo warning_forum_link($data_warning_archiv['post_id']);
          echo "</small><br />
          ".nl2br($data_warning_archiv['warn_message'])."
         </td>
         <td width='170' align='right' valign='top'>
          <b>".$data_warning_archiv['warn_point']."</b> ".($data_warning_archiv['warn_point']==1 ? $locale['PDWA413'] : $locale['PDWA414'])."<br />
             ".$locale['PDWA415']." <b>".date("d.m.Y", warning_length($data_warning_archiv['warn_subject'], $data_warning_archiv['warn_datestamp']))."</b><br />
         <i>".date($locale['PDWA416'], $data_warning_archiv['warn_datestamp']).", ".warning_user($data_warning_archiv['warn_admin'])."</i>
         </td>
        </tr>";
      $count_zzz++;
      $count_verwarn_points = $count_verwarn_points + $data_warning_archiv['warn_point'];
     }
      }

if($count_zzz!=0)
{
   echo "   <tr>
                  <td colspan='2' align='left' valign='top'>&nbsp;</td>
               </tr>
               <tr>
                  <td align='left' valign='top'>&nbsp;</td>
                  <td align='center' valign='top' class='tbl2'><b>".$locale['PDWA417']." ".number_format($count_verwarn_points)." ".($count_verwarn_points==1 ? $locale['PDWA413'] : $locale['PDWA414'])."</b></td>
               </tr>
            </table><br />";
   closetable();
}
else
{
   opentable($locale['PDWA418']);
      echo "<br><center>".$locale['PDWA419']."</center><br><br>";
   closetable();
}



//show unvalid warnings
$sql_warning_archiv = getWarningSQL("user_id = '".$warn_user_id."' ORDER BY warn_datestamp");
$count_zzz = 0;
while($data_warning_archiv = dbarray($sql_warning_archiv))
{
   $data_warning_archiv2 = dbarray(dbquery("SELECT * FROM ".DB_PDWARNING_CATALOG." WHERE warn_id='".$data_warning_archiv['warn_subject']."'"));
   if(($data_warning_archiv['warn_datestamp']+($data_warning_archiv2['warn_length']*86400))<=date("U"))
   {
      if($count_zzz==0)
      {
         tablebreak();
         opentable($locale['PDWA420']);
         echo "<table width='80%' cellpadding='2' cellspacing='0' border='0' align='center'>";
      }

      echo "<tr>
                  <td colspan='2' align='left' valign='top'>&nbsp;</td>
               </tr>
               <tr class='tbl2'>
                  <td align='left' valign='top'><b>".warning_subject($data_warning_archiv['warn_subject'])."</b></td>
                  <td align='right' valign='top'></td>
               </tr>
               <tr>
                  <td align='left' valign='top'>
                  <small>".warning_forum_link($data_warning_archiv['post_id'])."</small><br />
                  ".nl2br($data_warning_archiv['warn_message'])."
                  </td>
                  <td width='170' align='right' valign='top'>
                     <b>".$data_warning_archiv['warn_point']."</b> ".($data_warning_archiv['warn_point']==1 ? $locale['PDWA413'] : $locale['PDWA414'])."<br />
                     ".$locale['PDWA421']." ".date("d.m.Y", warning_length($data_warning_archiv['warn_subject'], $data_warning_archiv['warn_datestamp']))."<br />
                     <i>".date($locale['PDWA416'], $data_warning_archiv['warn_datestamp']).", ".warning_user($data_warning_archiv['warn_admin'])."</i>
                  </td>
               </tr>";
      $count_zzz++;
   }
}
if($count_zzz!=0)
{
   echo "</table><br />";
   closetable();
}

require_once THEMES."templates/footer.php";

?>




--------------------------------------------------------------

waning.inc.php
http://ikelk.lt/storage/images/0...al_img.JPG
<?
/***************************************************************************
   pd Warning

   Copyright (C) 2007 pirdani (Daniel Zschintzsch)
   kontakt@pirdani.de
   http://www.pirdani.de

        Anpassung an V7
        Copyright (C) 2008
        Dirk Heise (emblinux)
        webmaster@heiseclan.de
        http://www.heiseclan.de

   PHP-Fusion
   Copyright © 2002 - 2007 Nick Jones
   http://www.php-fusion.co.uk/

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.
***************************************************************************/

// load locale
if (file_exists(INFUSIONS."pd_warning/locale/".LOCALESET."index.php"))
  {
    include INFUSIONS."pd_warning/locale/".LOCALESET."index.php";
  }
else
  {
    include INFUSIONS."pd_warning/locale/German/index.php";
  }

include INFUSIONS."pd_warning/infusion_db.php";

// load global settings
$sql_pd_warning_settings = dbquery("SELECT * FROM ".DB_PDWARNING_SETTINGS);
$pd_warning_settings = dbarray($sql_pd_warning_settings);

// settings
$pm_to_user = $pd_warning_settings['set_send_pm'];
if($pd_warning_settings['set_usergroup']==0) { echo $locale['PDWA221']; } else { $right_group = $pd_warning_settings['set_usergroup']; }

// javascript for popup
echo '<script language="javascript" type="text/javascript">
         <!--
         var win=null;
         
         function h1171915583(){
            myleft=20;
            mytop=20;
            settings="width=500,height=400,top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no,dependent=no";
            win=window.open("'.INFUSIONS.'pd_warning/info.php","Info",settings);
            win.focus();
         }
         onerror = stopError;
         function stopError(){
            return true;
         }
         // -->
         </script>';

/* warningadmin.php */
function GetWarnCatalogByID($warnid)
{
   return dbquery("SELECT * FROM ".DB_PDWARNING_CATALOG." WHERE warn_id='".$warnid."'");
}

function DeleteWarnCatalog($warnid)
{
   $sql = dbquery("DELETE FROM ".DB_PDWARNING_CATALOG." WHERE warn_id='".$warnid."'");
}

function EditWarnCatalog($warnid, $subject, $points, $length)
{
   $sql = dbquery("UPDATE ".DB_PDWARNING_CATALOG." SET
                     warn_subject='".$subject."',
                     warn_point='".$points."',
                     warn_length='".$length."'
                     WHERE warn_id='".$warnid."'");
}

function AddWarnCatalog($subject, $points, $length)
{
   $sql = dbquery("INSERT INTO ".DB_PDWARNING_CATALOG." (`warn_id`, `warn_subject`, `warn_point`, `warn_length`)
                           VALUES ('', '".$subject."', '".$points."', '".$length."');");
}

/* warning.php */
function getWarningSQLbyID($warnid)
{
   return dbquery("SELECT * FROM ".DB_PDWARNING." WHERE warn_id='".$warnid."'");
}

function getWarningSQL($where)
{
   return dbquery("SELECT * FROM ".DB_PDWARNING." WHERE ".$where."");
}

function delete_warning($warnid)
{
   $sql = dbquery("DELETE FROM ".DB_PDWARNING." WHERE warn_id='".$warnid."'");
}

function editWarning($warnid, $subject, $message, $points)
{
   $sql = dbquery("UPDATE ".DB_PDWARNING." SET warn_subject='".$subject."', warn_message='".$message."', warn_point='".$points."' WHERE warn_id='".$warnid."'");
}

function new_warning_post($post, $subject, $message, $points)
{
  global $userdata, $settings, $pd_warning_settings, $locale;
  $new_warning_sql = dbquery("SELECT * FROM ".DB_PREFIX."posts WHERE post_id='".$post."'");
  if (dbrows($new_warning_sql)!=0)
    {
      $post_warn_data = dbarray($new_warning_sql);
      $insertdate = date("U");
      $sql = dbquery("INSERT INTO ".DB_PDWARNING." ( `warn_id` , `user_id` , `post_id` , `thread_id` , `forum_id`, `warn_subject` , `warn_message` , `warn_point` , `warn_admin` , `warn_datestamp` )
                   VALUES ('', '".$post_warn_data['post_author']."', '".$post."', '".$post_warn_data['thread_id']."', '".$post_warn_data['forum_id']."', '".$subject."', '".$message."', '".$points."', '".$userdata['user_id']."', '".$insertdate."');");
      if ($pd_warning_settings['set_send_pm']==1)
   {
     $pn_subject = stripinput(trim($locale['PDWA210']));
       $pn_messages = stripinput(trim($locale['PDWA211']." ."forum/viewthread.php?thread_id=".$post_warn_data['thread_id']."&pid=".$post_warn_data['post_id']."#post_".$post_warn_data['post_id']."]".GetPostTitle($post_warn_data['post_id'])."
                     ".$locale['PDWA212']." ".warning_subject($subject)."
                     ".$locale['PDWA213']." ".$message."
                     ".$locale['PDWA214'].date($locale['PDWA215'], warning_length($subject, $insertdate)).$locale['PDWA216']));
     if($pd_warning_settings['set_pm_from']==0) { $pn_from = $userdata['user_id']; } else { $pn_from = $userdata['set_pm_from']; }
     $result = dbquery("INSERT INTO ".DB_PREFIX."messages (message_to, message_from, message_subject, message_message, message_smileys, message_read, message_datestamp, message_folder)
                                                   VALUES ('".$post_warn_data['post_author']."','".$pn_from."','".$pn_subject."','".$pn_messages."','y','0','".$insertdate."','0')");
   }
      if (show_warning_points($post_warn_data['post_author'])>=100)
   {
     $pn_subject = stripinput(trim($locale['PDWA217']));
       $pn_messages = stripinput(trim("."infusions/pd_warning/warning.php?lookup=".$post_warn_data['post_author']."]".$locale['PDWA218'].""));
     if($pd_warning_settings['set_pm_from']==0) { $pn_from = $userdata['user_id']; } else { $pn_from = $userdata['set_pm_from']; }
      $result = dbquery("INSERT INTO ".DB_PREFIX."messages (message_to, message_from, message_subject, message_message, message_smileys, message_read, message_datestamp, message_folder)
                                                   VALUES ('".$pd_warning_settings['set_pm_to']."','".$pn_from."','".$pn_subject."','".$pn_messages."','y','0','".$insertdate."','0')");
   }
      return TRUE;
    }
  else
    {
      return FALSE;
    }
}

function warning_forum_link($postid)
{
   global $locale;
   $sql_warning_post = dbquery("SELECT p.forum_id as forum_id, p.post_id as post_id, p.thread_id as thread_id, t.thread_subject as subject FROM ".DB_PREFIX."posts AS p
                                LEFT JOIN ".DB_PREFIX."threads AS t ON t.thread_id=p.thread_id WHERE post_id='".$postid."'");
   if(dbrows($sql_warning_post)==1)
   {
      $data_warning_post = dbarray($sql_warning_post);
      return "<a href='".FORUM."viewthread.php?thread_id=".$data_warning_post['thread_id']."&amp;pid=".$data_warning_post['post_id']."#post_".$data_warning_post['post_id']."'>".$locale['PDWA219']." ".$data_warning_post['subject']."</a>";
   }
   else
   {
      return $locale['PDWA220'];
   }
}

function GetPostTitle($postid)
{
  $rValue = FALSE;
   $sql_warning_post = dbquery("SELECT * FROM ".DB_PREFIX."threads WHERE thread_id='".$postid."'");
   if(dbrows($sql_warning_post)==1)
   {
      $data_warning_post = dbarray($sql_warning_post);
      $rValue = $data_warning_post['thread_subject'];
   }
   else
   {
     $rValue = FALSE;
   }
  return $rValue;
}

function warning_user($userid)
{
   $sql_warning_user = dbarray(dbquery("SELECT * FROM ".DB_PREFIX."users WHERE user_id='".$userid."'"));
   return "<a href='".BASEDIR."profile.php?lookup=".$userid."'>".$sql_warning_user['user_name']."</a>";
}

function warning_subject($warn_id)
{
   $sql_warning_subject = dbarray(dbquery("SELECT * FROM ".DB_PDWARNING_CATALOG." WHERE warn_id='".$warn_id."'"));
   return $sql_warning_subject['warn_subject'];
}

function warning_points($warn_id)
{
   $sql_warning_points = dbarray(dbquery("SELECT * FROM ".DB_PDWARNING_CATALOG." WHERE warn_id='".$warn_id."'"));
   return $sql_warning_points['warn_point'];
}

function warning_length($warn_id, $datestamp)
{
   $warning_subject_titel = dbarray(dbquery("SELECT * FROM ".DB_PDWARNING_CATALOG." WHERE warn_id='".$warn_id."'"));
   return $datestamp+($warning_subject_titel['warn_length']*86400);
}

function show_warning_points($user)
{
  $sql = "SELECT * FROM ".DB_PDWARNING." WHERE user_id=".$user."";
  $sql_points = dbquery($sql);
  $points = 0;
  while($pdata = dbarray($sql_points))
  {
    $wcdata = dbarray(dbquery("SELECT * FROM ".DB_PDWARNING_CATALOG." WHERE warn_id='".$pdata['warn_subject']."'"));
    if(($pdata['warn_datestamp']+($wcdata['warn_length']*86400))>date("U"))
    {
      $points = $points + $pdata['warn_point'];
    }
  }
  if($points>100)
  {
    $points=100;
  }
  return $points;
}

function show_warning_symbols($punkte)
{
  if($punkte==0)
  {
    $warning = "<img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/green.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/green.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/green.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/green.gif'>";
  }
  else if ($punkte<=15)
  {
    $warning = "<img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/green.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/green.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/green.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/orange.gif'>";
  }
  else if ($punkte>15 AND $punkte<=30)
  {
    $warning = "<img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/green.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/green.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/orange.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/orange.gif'>";
  }
  else if ($punkte>30 AND $punkte<=45)
  {
    $warning = "<img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/green.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/orange.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/orange.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/orange.gif'>";
  }
  else if ($punkte>45 AND $punkte<=60)
  {
    $warning = "<img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/orange.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/orange.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/orange.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/orange.gif'>";
  }
  else if ($punkte>60 AND $punkte<=75)
  {
    $warning = "<img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/orange.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/orange.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/orange.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/red.gif'>";
  }
  else if ($punkte>75 AND $punkte<=90)
  {
    $warning = "<img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/orange.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/orange.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/red.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/red.gif'>";
  }
  else if ($punkte>90 AND $punkte<100)
  {
    $warning = "<img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/orange.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/red.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/red.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/red.gif'>";
  }
  else if ($punkte>=100)
  {
    $warning = "<img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/red.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/red.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/red.gif'><img alt='warning' border='0' src='".INFUSIONS."pd_warning/images/red.gif'>";
  }
  return $warning;
}

?>




Ir dar vienas klausimas. Po įsėpjimo suteikimo įspėtam vartotojui ateina žinutė, kodėl nerodo temos, kurioje jis gavo įspėjimą?
Va ta forma, kurią gauna įspėtas narys:
Rašymas:
Priežastis: Kita
Paaiškinimas: Test
Įspėjimas liks iki 04.08.2011 .
Kad išvengtumėte tokios situacijos ateityje, laikykitės forumo taisyklių.



Ir prie "rašymas" nieko nerodo. Ten turėtų rodyt temą, kurioje vartotojas gavo įspėjimą.
$pn_messages = stripinput(trim($locale['PDWA211']." ."forum/viewthread.php?thread_id=".$post_warn_data['thread_id']."&pid=".$post_warn_data['post_id']."#post_".$post_warn_data['post_id']."]".GetPostTitle($post_warn_data['post_id'])."



Redagavo xFlow· 2011 Lie. 5 09:07:38

Parašė avice· 2011 Lie. 5 00:07:42
#2

pamirsk niekas nesisius ir neieskos tu tavo klaidu..

Parašė xFlow· 2011 Lie. 5 00:07:57
#3

Taigi ten viskas aiškiai su nuotraukom. 2 failai, konkrečios eilutės.

Parašė avice· 2011 Lie. 5 00:07:44
#4

o kodel tau tiesiog neidejus cia tu foto ir koda..
Nes tikrai niekas nesisius.

Parašė xFlow· 2011 Lie. 5 09:07:56
#5

Na va, pataisiau, dabar geriau?