Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

xsell v2.3 step 14 in french


newtech

Recommended Posts

When you go to step 14 of the install directions, then words are french, anyone have the english version of step 14?

 

STEP 14:

Add to /catalog/admin/includes/functions/general.php

 

//Cache

function rdel($path, $deldir = true) {

// $path est le chemin relatif au fichier php

// $deldir (paramètre optionel, par défaut à vrai) permet de dire si vous souhaitez supprimer le répertoire (vrai) ou le vider uniquement (faux)

 

// on vérifie d'abord que le nom du repertoire contient "/" à la fin, sinon on le lui rajoute

if ($path[strlen($path)-1] != "/")

$path .= "/";

 

if (is_dir($path)) {

$d = opendir($path);

 

while ($f = readdir($d)) {

if ($f != "." && $f != "..") {

$rf = $path . $f; // chemin relatif au fichier php

 

if (is_dir($rf)) // si c'est un répertoire on appel récursivement la fonction

rdel($rf);

else // sinon on efface le fichier

unlink($rf);

}

}

closedir($d);

 

if ($deldir) // si $deldir est vrai on efface le répertoire

rmdir($path);

}

else {

unlink($path);

}

}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...