1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Text To LANS #6 - Rate

Text To LANS #6 - Rate
This commit is contained in:
MikeyGMT
2016-12-30 15:18:03 +00:00
parent 274b822bf3
commit c42dd69394
3 changed files with 35 additions and 40 deletions

View File

@@ -1,13 +1,12 @@
<?php
/*
* e107 website system
*
* Copyright (C) e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* $URL$
* $Id$
+ ----------------------------------------------------------------------------+
|
| e107 website system
| Copyright (C) 2008-2016 e107 Inc (e107.org)
| Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
+ ----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
@@ -188,7 +187,7 @@ class rater {
if($id == 0)
{
return "There is no item ID in the rating";
return RATELAN_10;
}
$sep = chr(1);
@@ -270,8 +269,8 @@ class rater {
$p = ($perc) ? "%" : "";
$upImg = "<img class='e-tip' src='".e_IMAGE_ABS."rate/like_16.png' alt='' title='Like' />";
$upDown = "<img class='e-tip' src='".e_IMAGE_ABS."rate/dislike_16.png' alt='' title='Dislike' />";
$upImg = "<img class='e-tip' src='".e_IMAGE_ABS."rate/like_16.png' alt='' title='".RATELAN_7."' />";//like
$upDown = "<img class='e-tip' src='".e_IMAGE_ABS."rate/dislike_16.png' alt='' title='".RATELAN_8."' />";//dislike
if(deftrue('BOOTSTRAP'))
{
@@ -397,7 +396,7 @@ class rater {
}
else
{
return "Error: ".print_a($qs,true);
return LAN_ERROR.": ".print_a($qs,true);
}
}
@@ -425,7 +424,7 @@ class rater {
if(strpos($row['rate_voters'], ".".$voter.".") == true || strpos($row['rate_voters'], ".".USERID.".") == true)
{
return "You already voted|".$this->renderVotes($new_votes,$statR); // " newvotes = ".($statR). " =".$new_votes;
return RATELAN_9."|".$this->renderVotes($new_votes,$statR); // " newvotes = ".($statR). " =".$new_votes;
}
@@ -435,7 +434,7 @@ class rater {
}
else
{
return "Error";
return LAN_ERROR;
}
}
@@ -463,7 +462,7 @@ class rater {
}
elseif(getperms('0'))
{
return "Rating Failed ";
return RATELAN_11;
}
}

View File

@@ -1,12 +1,11 @@
<?php
/*
+ ----------------------------------------------------------------------------+
| e107 website system - Language File.
|
| $Source: /cvs_backup/e107_0.8/e107_languages/English/lan_rate.php,v $
| $Revision$
| $Date$
| $Author$
| e107 website system
| Copyright (C) 2008-2016 e107 Inc (e107.org)
| Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
+ ----------------------------------------------------------------------------+
*/
@@ -17,6 +16,11 @@ define("RATELAN_3", "Thanks for voting!");
define("RATELAN_4", "Not rated");
define("RATELAN_5", "Rate this:");
define("RATELAN_6", "Please login to rate this.");
define("RATELAN_7", "Like");
define("RATELAN_8", "Dislike");
define("RATELAN_9", "You already voted");
define("RATELAN_10", "There is no item ID in the rating");
define("RATELAN_11", "Rating Failed ");
define("RATELAN_POOR","Poor");
define("RATELAN_FAIR","Fair");

View File

@@ -1,19 +1,11 @@
<?php
/*
+ ----------------------------------------------------------------------------+
|
| e107 website system
| Copyright (C) 2008-2016 e107 Inc (e107.org)
| Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
| Copyright (C) 2008-2009 e107 Inc
| http://e107.org
|
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/rate.php,v $
| $Revision$
| $Date$
| $Author$
+ ----------------------------------------------------------------------------+
*/