Skip to content
This repository was archived by the owner on Nov 12, 2019. It is now read-only.

Commit b89734f

Browse files
author
aFolletete
committed
[-] Project : Convert all files to unix format
1 parent a1aa41a commit b89734f

File tree

676 files changed

+60075
-60074
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

676 files changed

+60075
-60074
lines changed

CHANGELOG

+1,415-1,415
Large diffs are not rendered by default.

admin-dev/ajax_lang_packs.php

+29-29
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
<?php
2-
3-
define('PS_ADMIN_DIR', getcwd());
4-
include(PS_ADMIN_DIR.'/../config/config.inc.php');
5-
/* Getting cookie or logout */
6-
require_once(dirname(__FILE__).'/init.php');
7-
8-
if(!isset($_GET['iso']) OR empty($_GET['iso']))
9-
die('fail:0');
10-
11-
if(@fsockopen('www.prestashop.com', 80))
12-
{
13-
// Get all iso code available
14-
$lang_packs = file_get_contents('http://www.prestashop.com/rss/lang_exists.php');
15-
16-
if ($lang_packs)
17-
{
18-
$lang_packs = unserialize($lang_packs);
19-
foreach($lang_packs as $lang_pack)
20-
{
21-
if($lang_pack['iso_code'] == $_GET['iso'])
22-
die('ok');
23-
}
24-
die('fail:1');
25-
}
26-
else
27-
die('fail:2');
28-
}
29-
die('offline');
1+
<?php
2+
3+
define('PS_ADMIN_DIR', getcwd());
4+
include(PS_ADMIN_DIR.'/../config/config.inc.php');
5+
/* Getting cookie or logout */
6+
require_once(dirname(__FILE__).'/init.php');
7+
8+
if(!isset($_GET['iso']) OR empty($_GET['iso']))
9+
die('fail:0');
10+
11+
if(@fsockopen('www.prestashop.com', 80))
12+
{
13+
// Get all iso code available
14+
$lang_packs = file_get_contents('http://www.prestashop.com/rss/lang_exists.php');
15+
16+
if ($lang_packs)
17+
{
18+
$lang_packs = unserialize($lang_packs);
19+
foreach($lang_packs as $lang_pack)
20+
{
21+
if($lang_pack['iso_code'] == $_GET['iso'])
22+
die('ok');
23+
}
24+
die('fail:1');
25+
}
26+
else
27+
die('fail:2');
28+
}
29+
die('offline');
3030
?>

admin-dev/uploadProductFile.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
include(PS_ADMIN_DIR.'/../config/config.inc.php');
66

7-
if (!class_exists('Cookie'))
8-
exit();
9-
10-
$cookie = new Cookie('psAdmin', substr($_SERVER['SCRIPT_NAME'], strlen(__PS_BASE_URI__), -10));
7+
if (!class_exists('Cookie'))
8+
exit();
9+
10+
$cookie = new Cookie('psAdmin', substr($_SERVER['SCRIPT_NAME'], strlen(__PS_BASE_URI__), -10));
1111
if (!$cookie->isLoggedBack())
1212
die;
1313

0 commit comments

Comments
 (0)