|
@@ -28,9 +28,10 @@ class comments extends Conexion_Mysql {
|
28
|
28
|
}
|
29
|
29
|
|
30
|
30
|
function generateCookie($fieldsArray) {
|
31
|
|
- setcookie("cookie_gel_user", $fieldsArray["username"], time() + 30000000, "/");
|
32
|
|
- setcookie("cookie_gel_email", $fieldsArray["email"], time() + 30000000, "/");
|
33
|
|
- setcookie("cookie_gel_web", $fieldsArray["web"], time() + 30000000, "/");
|
|
31
|
+ $path = dirname(dirname($_SERVER['SCRIPT_NAME']."../"));
|
|
32
|
+ setcookie("cookie_gel_user", $fieldsArray["username"], time() + 30000000, $path);
|
|
33
|
+ setcookie("cookie_gel_email", $fieldsArray["email"], time() + 30000000, $path);
|
|
34
|
+ setcookie("cookie_gel_web", $fieldsArray["web"], time() + 30000000, $path);
|
34
|
35
|
}
|
35
|
36
|
|
36
|
37
|
function isSpam($fieldsArray) {
|