Code is based on article posted by
EOT;
$lang_xp_publish_required = <<What is required
Windows XP in order to have the wizard.
A working installation of Coppermine on which the web upload function works properly.
How to install on client side
Right click on
EOT;
$lang_xp_publish_select = <<cpg_###.reg (the ### represents a numerical timestamp). Change it to that name if necessary (leave the numbers). When downloaded, double click on the file in order to register your server with the web publishing wizard.
EOT;
$lang_xp_publish_testing = <<Testing
In Windows Explorer, select some files and click on Publish xxx on the web in the left pane.
Confirm your file selection. Click on Next.
In the list of services that appear, select the one for your photo gallery (it has the name of your gallery). If the service does not appear, check that you have installed cpg_pub_wizard.reg as described above.
Input your login information if required.
Select the target album for your pictures or create a new one.
Click on next. The upload of your pictures starts.
When it is completed, check your gallery to see if pictures have been properly added.
EOT;
$lang_xp_publish_notes = <<Notes :
Once the upload has started, the wizard can't display any error message returned by the script so you can't know if the upload failed or succeeded until you check your gallery.
If the upload fails, enable "Debug mode" on the Coppermine admin page, try with one single picture and check error messages in the
EOT;
$lang_xp_publish_flood = <<
In order to avoid that the gallery be flooded by pictures uploaded through the wizard, only the gallery admins and users that can have their own albums can use this feature.
EOT;
$lang_xp_publish_php = array(
'title' => 'Coppermine - XP Web Publishing Wizard', //cpg1.4
'welcome' => 'Welcome %s,', //cpg1.4
'need_login' => 'You need to login to the gallery using your web browser before you can use this wizard.
When you login don\'t forget to select the remember me option if it is present.', //cpg1.4
'no_alb' => 'Sorry but there is no album where you are allowed to upload pictures with this wizard.', //cpg1.4
'upload' => 'Upload your pictures into an existing album', //cpg1.4
'create_new' => 'Create a new album for your pictures', //cpg1.4
'album' => 'Album', //cpg1.4
'category' => 'Category', //cpg1.4
'new_alb_created' => 'Your new album "%s" was created.', //cpg1.4
'continue' => 'Press "Next" to start to upload your pictures', //cpg1.4
'link' => 'this link', //cpg1.4
);
}
?>
es_inc_php['Idea']),
array(':!:', 'icon_exclaim.gif', $lang_smilies_inc_php['Exclamation']),
array(':?:', 'icon_question.gif', $lang_smilies_inc_php['Question'])
);
}
// Smilies code ... would this be better tagged on to the end of bbcode.php?
// Probably so and I'll move it before B2
function process_smilies($message, $url_prefix = '')
{
static $orig, $repl;
if (!isset($orig)) {
global $db, $board_config,$THEME_DIR;
$orig = $repl = array();
$smilies = get_smilies_table1();
$paths = array($THEME_DIR.'/smiles/','images/smiles/');
for($i = 0; $i < count($smilies); $i++) {
$orig[] = "/(?<=.\W|\W.|^\W)" . preg_quote($smilies[$i][0], "/") . "(?=.\W|\W.|\W$)/";
$smile_path = (file_exists($paths[0].$smilies[$i][1]))?($paths[0]):($paths[1]);
$repl[] = '';
}
}
if (count($orig)) {
$message = preg_replace($orig, $repl, ' ' . $message . ' ');
$message = substr($message, 1, -1);
}
return $message;
}
// Fill smiley templates (or just the variables) with smileys
// Either in a window or inline
function generate_smilies($form = 'post', $field = 'message')
{
global $THEME_DIR;
$smilies = get_smilies_table2();
$paths = array($THEME_DIR.'/smiles/','images/smiles/');
if (function_exists('theme_generate_smilies'))
{
$html = theme_generate_smilies($smilies, $form);
}
else
{
$html = '