Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Upgrade made easy

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 10-07-2003, 01:41 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default Upgrade made easy

The biggest fall down in upgrading is the time to set file permissions - this will make it easier.

change skin1/admin/main/patch_apply.tpl to:

Code:
{include file="location.tpl" last_location="Applying patch"} {capture name=dialog} {if $patch_type eq "upgrade" and $patch_phase ne "upgrade_final"} CHECKING PATCH EXECUTABLE... {$patch_exe.patch_exe} ... {if $patch_exe.status eq "OK"} [<font color="green">OK</font>] {else} [<font color="red">{$patch_exe.status}</font>] {/if} </P> CHECKING UPGRADE PATCH INTEGRITY... {section name=result_line loop=$integrity_result} {$integrity_result[result_line].filename} ... {if $integrity_result[result_line].status eq "OK"} [<font color="green">OK</font>] {else} [<font color="red">{$integrity_result[result_line].status}</font>] {/if} {/section} </P> {/if} {if $patch_type eq "text" or ($patch_type eq "upgrade" and $patch_phase ne "upgrade_final")} CHECKING WRITE PERMISSIONS... {section name=file loop=$all_files_to_patch} {$all_files_to_patch[file].filename} ... {if $all_files_to_patch[file].status eq "OK"} [<font color="green">OK</font>] {else} [<font color="red">{$all_files_to_patch[file].status}</font>] {/if} {/section} IMPORTANT: It is recommended to backup these files. {if !empty($files_to_patch)} <FONT color=red>BEFORE YOU CONTINUE PLEASE SET WRITE PERMISSIONS ON FOLLOWING FILES</FONT> Copy this contents below and paste (right-click)into ssh whilst you are within the xcart directory <textarea cols=60 rows=10> {section name=file loop=$files_to_patch} chmod 666 {$files_to_patch[file]} {/section} </textarea> {/if} {/if} {if $confirm_patch ne "" and $patch_phase ne "upgrade_final"} <FORM action="patch.php" method=POST> <INPUT type=hidden name=mode value={$smarty.post.mode}> Patch text: <TEXTAREA cols=60 rows=10>{$patch_text|escape:"htmlall"}</TEXTAREA> <INPUT type=hidden name=patch_filename value="{$patch_filename}"> <INPUT type=hidden name=reverse value="{$reverse}"> <INPUT type=hidden name=confirmed value=Y> <INPUT type=button value="<< Go back" onClick="history.go(-1)"> <INPUT type=submit value="Continue >>"> </FORM> {/if} {if !empty($files_to_patch)} Note: After applying a patch please set the original permissions on changed files. {elseif $smarty.post.confirmed ne ""} APPLYING THE PATCH... {if $patch_phase eq "upgrade_final"} {section name=file loop=$patch_files} {$patch_files[file].orig_file} ... [{$patch_files[file].status}] {/section} PATCH RESULTS... {section name=line loop=$patch_result} {$patch_result[line]} {/section} PATCH LOG... {section name=line loop=$patch_log} {$patch_log[line]} {/section} {else} {section name=line loop=$patch_result} {$patch_result[line]} {/section} {/if} <FORM action="patch.php" method=get> <INPUT type=submit value="Finish >>"> </FORM> {/if} {/capture} {include file="dialog.tpl" title="Applying patch" content=$smarty.capture.dialog extra="width=100%"}

This will then produce a nice easy section in a text area to cut and paste into ssh or telnet or ftp manager to set all the file permissions in one go.
__________________
ex x-cart guru
Reply With Quote
  #2  
Old 10-07-2003, 10:06 AM
  lildawg's Avatar 
lildawg lildawg is offline
 

X-Adept
  
Join Date: Jan 2003
Location: Utah
Posts: 686
 

Default

Thanks for the great ap.
Reply With Quote
  #3  
Old 10-07-2003, 10:38 AM
 
jpsowin jpsowin is offline
 

X-Adept
  
Join Date: Sep 2002
Posts: 459
 

Default

You da man!
I normally just 777 the whole skin files, then set them back real quick. This is better
__________________
Joshua Sowin
...taking things one TPL at a time.
Reply With Quote
  #4  
Old 10-07-2003, 02:32 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

What FTP application would you guys recommend using with this?

I use WS FTP Pro but I can't figure out how to paste a whack of CHMOD commands in.

FYI, I'm a Windows user.
Reply With Quote
  #5  
Old 10-07-2003, 02:41 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

i use this with ssh (putty) to linux servers from a win xp pro.

not sure about ftp for this - can do this in cute ftp by defining a custom command then running
__________________
ex x-cart guru
Reply With Quote
  #6  
Old 10-07-2003, 03:25 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Forgive my ignorance.

What is Putty?
Reply With Quote
  #7  
Old 10-07-2003, 03:37 PM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default

It's sort of like a user interface for SSH. Kind of like a FTP client program.
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote
  #8  
Old 10-07-2003, 04:05 PM
 
jpsowin jpsowin is offline
 

X-Adept
  
Join Date: Sep 2002
Posts: 459
 

Default

you can only use puTTY if you have SSH/Telnet access to the server... which I would always recommend getting a host where you have that. X-Cart would be a nightmare for me if I didn't have shell access!
__________________
Joshua Sowin
...taking things one TPL at a time.
Reply With Quote
  #9  
Old 10-07-2003, 06:43 PM
 
dealsondeals dealsondeals is offline
 

eXpert
  
Join Date: Dec 2002
Location: Dallas, Texas, USA
Posts: 231
 

Default

Sweet! I really like this one. Keep up the good work!
__________________
Never understimate stupidity.
--------
X-Cart Version: 3.5.2
Hosting:mind-in-design.net
Configuration: Virtual Dedicated Server || Intel Pentium 4 2.4 GHZ CPU || 1024MB PC2100 DDR RAM || Linux || PHP 4.3.2 || MySQL server 4.0.14
Reply With Quote
  #10  
Old 10-07-2003, 06:49 PM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default

That's class that is, kudos funky!
__________________
Groovico

Used by X-carters the world over:
Marketing Manager Pro Bundle For X-cart
Featured Product Manager for X-cart
Feed manager pro for X-cart

http://www.firetanksoftware.com

Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:08 AM.

   

 
X-Cart forums © 2001-2020