Current time: 05-06-2024, 02:28 PM Hello There, Guest! (LoginRegister)


Post Reply 
--== Software Installer -> NEW VERSION RC4 Realese==-- NICHT FÜR 1.0.7 RC
Author Message
enrico73 Offline
Junior Member
*
Beta Team

Posts: 18
Joined: Mar 2010
Reputation: 0
Post: #631
RE: ispCP Software Installer -> NEW VERSION RC2 Realese
(05-09-2010 06:15 AM)ZooL Wrote:  was steht denn in der zeile 208 ?

mfg

(05-09-2010 08:59 AM)FISA4 Wrote:  
(05-09-2010 03:27 AM)enrico73 Wrote:  ...
Ps. hatte eine andere Version installiert gehabt und die neue drüber installiert.
Gruß Rico

Daran könnte es liegen.
Benutzt Du denn auch ispCP 1.0.5 ?
Wenn ja, dann hätte eine vorherige Version vom Installer nicht 100%ig lauffähig sein dürfen.

Sieht bei Dir die While-Schleife so aus ???
PHP Code:
        while ($data $rs->FetchRow()) {
            list(
                
$hp_php,
                
$hp_cgi,
                
$hp_sub,
                
$hp_als,
                
$hp_mail,
                
$hp_ftp,
                
$hp_sql_db,
                
$hp_sql_user,
                
$hp_traff,
                
$hp_disk,
                
$hp_backup,
                
$hp_dns,
                
$hp_allowsoftware
            
) = explode(";"$data['props']); 

Gruß

FISA4

Hi,
sieht bei mir genauso aus. hm
Was mir auffällt das beim Tarif ändern
z.b. bei Anzahl Subdomains --> {TR_MAX_SUB_LIMITS} im Feld drin steht. Bei den anderen auch.
Denke es kann nicht aus der DB gelesen werden oder so.

Beim speichern kommt dann oben ein Fehler.
Array
Array
Array
Array
Array
Array
Array
Array


Am besten wär wenn ich eine orginal geänderte Datei hätte. Also mit den Installer drin. Zum Vergleich.
Der Fehler kann natürlich auch in einer anderen Datei sein.

Bei Install hat er mit immer Dateien wie diese angelegt.
hosting_plan.php.rej

Inhalt:
PHP Code:
***************
*** 
41,46 ****
  
$tpl->define_dynamic('page'Config::get('RESELLER_TEMPLATE_PATH') . '/hosting_plan_add.tpl');
  
$tpl->define_dynamic('page_message''page');
  
$tpl->define_dynamic('logged_from''page');
  
  
$theme_color Config::get('USER_INITIAL_THEME');
  
--- 
41,47 ----
  
$tpl->define_dynamic('page'Config::get('RESELLER_TEMPLATE_PATH') . '/hosting_plan_add.tpl');
  
$tpl->define_dynamic('page_message''page');
  
$tpl->define_dynamic('logged_from''page');
$tpl->define_dynamic('t_software_support''page');
  
  
$theme_color Config::get('USER_INITIAL_THEME');
  
***************
*** 
78,83 ****
                  
'TR_MAX_TRAFFIC'            => tr('Traffic limit [MB]<br><i>(0 unlimited)</i>'),
                  
'TR_DISK_LIMIT'                => tr('Disk limit [MB]<br><i>(0 unlimited)</i>'),
                  
'TR_PHP'                    => tr('PHP'),
                  
'TR_CGI'                    => tr('CGI / Perl'),
                  
'TR_DNS'                    => tr('Allow adding records to DNS zone (EXPERIMENTAL)'),
                  
'TR_BACKUP'                    => tr('Backup'),
--- 
79,85 ----
                  
'TR_MAX_TRAFFIC'            => tr('Traffic limit [MB]<br><i>(0 unlimited)</i>'),
                  
'TR_DISK_LIMIT'                => tr('Disk limit [MB]<br><i>(0 unlimited)</i>'),
                  
'TR_PHP'                    => tr('PHP'),
+                 
'TR_SOFTWARE_SUPP'            => tr('Software installation'),
                  
'TR_CGI'                    => tr('CGI / Perl'),
                  
'TR_DNS'                    => tr('Allow adding records to DNS zone (EXPERIMENTAL)'),
                  
'TR_BACKUP'                    => tr('Backup'),
***************
*** 
111,117 ****
  } else {
      
gen_empty_ahp_page($tpl);
  }

  
gen_page_message($tpl);
  
  
$tpl->parse('PAGE''page');
--- 
113,119 ----
  } else {
      
gen_empty_ahp_page($tpl);
  }
get_reseller_software_permission (&$tpl,&$sql,$_SESSION['user_id']);
  
gen_page_message($tpl);
  
  
$tpl->parse('PAGE''page');
***************
*** 
145,150 ****
                      
'HP_DESCRIPTION_VALUE'    => '',
                      
'TR_PHP_YES'            => '',
                      
'TR_PHP_NO'                => 'checked="checked"',
                      
'TR_CGI_YES'            => '',
                      
'TR_CGI_NO'                => 'checked="checked"',
                      
'VL_BACKUPD'            => '',
--- 
147,154 ----
                      
'HP_DESCRIPTION_VALUE'    => '',
                      
'TR_PHP_YES'            => '',
                      
'TR_PHP_NO'                => 'checked="checked"',
+                     
'VL_SOFTWAREY'            => '',
+                     
'VL_SOFTWAREN'            => 'checked="checked"',
                      
'TR_CGI_YES'            => '',
                      
'TR_CGI_NO'                => 'checked="checked"',
                      
'VL_BACKUPD'            => '',
***************
*** 
172,178 ****
      global 
$hp_ftp$hp_sql_db$hp_sql_user;
      global 
$hp_traff$hp_disk;
      global 
$price$setup_fee$value$payment$status;
-     global 
$hp_backup$hp_dns;
  
      
$tpl->assign(
              array(
--- 
176,182 ----
      global 
$hp_ftp$hp_sql_db$hp_sql_user;
      global 
$hp_traff$hp_disk;
      global 
$price$setup_fee$value$payment$status;
+     global 
$hp_backup$hp_dns$hp_allowsoftware;
  
      
$tpl->assign(
              array(
***************
*** 
197,202 ****
              array(
                      
'TR_PHP_YES'    => ($hp_php == '_yes_') ? 'checked="checked"' '',
                      
'TR_PHP_NO'        => ($hp_php == '_no_') ? 'checked="checked"' '',
                      
'TR_CGI_YES'    => ($hp_cgi == '_yes_') ? 'checked="checked"' '',
                      
'TR_CGI_NO'        => ($hp_cgi == '_no_') ? 'checked="checked"' '',
                      
'VL_BACKUPD'    => ($hp_backup == '_dmn_') ? 'checked="checked"' '',
--- 
201,208 ----
              array(
                      
'TR_PHP_YES'    => ($hp_php == '_yes_') ? 'checked="checked"' '',
                      
'TR_PHP_NO'        => ($hp_php == '_no_') ? 'checked="checked"' '',
+                     
'VL_SOFTWAREY'    => ($hp_allowsoftware == '_yes_') ? 'checked="checked"' '',
+                     
'VL_SOFTWAREN'    => ($hp_allowsoftware == '_no_') ? 'checked="checked"' '',
                      
'TR_CGI_YES'    => ($hp_cgi == '_yes_') ? 'checked="checked"' '',
                      
'TR_CGI_NO'        => ($hp_cgi == '_no_') ? 'checked="checked"' '',
                      
'VL_BACKUPD'    => ($hp_backup == '_dmn_') ? 'checked="checked"' '',
***************
*** 
222,228 ****
      global 
$hp_ftp$hp_sql_db$hp_sql_user;
      global 
$hp_traff$hp_disk;
      global 
$price$setup_fee$value$payment$status;
-     global 
$hp_backup$hp_dns;
  
      
$ahp_error         = array();
  
--- 
228,234 ----
      global 
$hp_ftp$hp_sql_db$hp_sql_user;
      global 
$hp_traff$hp_disk;
      global 
$price$setup_fee$value$payment$status;
+     global 
$hp_backup$hp_dns$hp_allowsoftware;
  
      
$ahp_error         = array();
  
***************
*** 
268,274 ****
      if (isset(
$_POST['backup'])) {
          
$hp_backup $_POST['backup'];
      }

      if (
$hp_name == '') {
          
$ahp_error[] = tr('Incorrect template name length!');
      }
--- 
274,285 ----
      if (isset(
$_POST['backup'])) {
          
$hp_backup $_POST['backup'];
      }
+     
+     (isset(
$_POST['software_allowed'])) ? $hp_allowsoftware $_POST['software_allowed'] : $hp_allowsoftware "_no_";
+     
+     if(
$hp_php == "_no_" && $hp_allowsoftware == "_yes_") {
+         
$ahp_error[] = tr('The software installer needs PHP to enable it!');
+     }
      if (
$hp_name == '') {
          
$ahp_error[] = tr('Incorrect template name length!');
      }
***************
*** 
325,331 ****
      global 
$hp_ftp$hp_sql_db$hp_sql_user;
      global 
$hp_traff$hp_disk;
      global 
$price$setup_fee$value$payment$status;
-     global 
$hp_backup$hp_dns;
  
      
$sql Database::getInstance();
      
$err_msg '';
--- 
336,342 ----
      global 
$hp_ftp$hp_sql_db$hp_sql_user;
      global 
$hp_traff$hp_disk;
      global 
$price$setup_fee$value$payment$status;
+     global 
$hp_backup$hp_dns$hp_allowsoftware;
  
      
$sql Database::getInstance();
      
$err_msg '';
***************
*** 
337,343 ****
          
$tpl->assign('MESSAGE'tr('Hosting plan with entered name already exists!'));
          
// $tpl->parse('AHP_MESSAGE', 'ahp_message');
      
} else {
-         
$hp_props "$hp_php;$hp_cgi;$hp_sub;$hp_als;$hp_mail;$hp_ftp;$hp_sql_db;$hp_sql_user;$hp_traff;$hp_disk;$hp_backup;$hp_dns";
          
// this id is just for fake and is not used in reseller_limits_check.
          
$hpid 0;
  
--- 
348,354 ----
          
$tpl->assign('MESSAGE'tr('Hosting plan with entered name already exists!'));
          
// $tpl->parse('AHP_MESSAGE', 'ahp_message');
      
} else {
+         
$hp_props "$hp_php;$hp_cgi;$hp_sub;$hp_als;$hp_mail;$hp_ftp;$hp_sql_db;$hp_sql_user;$hp_traff;$hp_disk;$hp_backup;$hp_dns;$hp_allowsoftware";
          
// this id is just for fake and is not used in reseller_limits_check.
          
$hpid 0
(This post was last modified: 05-09-2010 04:23 PM by enrico73.)
05-09-2010 04:18 PM
Find all posts by this user Quote this message in a reply
FISA4 Offline
Member
***

Posts: 668
Joined: Feb 2008
Reputation: 15
Post: #632
RE: ispCP Software Installer -> NEW VERSION RC2 Realese
Hier die hosting_plan.php die bei mir ohne Probleme läuft


Attached File(s)
.php  hosting_plan.php (Size: 7.04 KB / Downloads: 28)
05-09-2010 07:55 PM
Find all posts by this user Quote this message in a reply
enrico73 Offline
Junior Member
*
Beta Team

Posts: 18
Joined: Mar 2010
Reputation: 0
Post: #633
RE: ispCP Software Installer -> NEW VERSION RC2 Realese
(05-09-2010 07:55 PM)FISA4 Wrote:  Hier die hosting_plan.php die bei mir ohne Probleme läuft

Schade liegt nicht an der Datei. Am besten wäre deinstallieren und neu. Gibt es da eine Möglichkeit? Oder müsste alle Dateien von Hand kontrollieren glaub ich. Hab noch die alten Dateien liegen. Besser aber neu.
05-09-2010 07:59 PM
Find all posts by this user Quote this message in a reply
TheCry Away
Member
***

Posts: 851
Joined: Oct 2008
Reputation: 21
Post: #634
RE: ispCP Software Installer -> NEW VERSION RC2 Realese
Eigentlich sollte das Problem mit dem Offset behoben sein...
http://isp-control.net/forum/thread-7463...l#pid76925
Hier ist die Lösung...
Ich hatte das extra in den Installer mit eingebaut!
05-10-2010 01:04 AM
Find all posts by this user Quote this message in a reply
enrico73 Offline
Junior Member
*
Beta Team

Posts: 18
Joined: Mar 2010
Reputation: 0
Post: #635
RE: ispCP Software Installer -> NEW VERSION RC2 Realese
(05-10-2010 01:04 AM)TheCry Wrote:  Eigentlich sollte das Problem mit dem Offset behoben sein...
http://isp-control.net/forum/thread-7463...l#pid76925
Hier ist die Lösung...
Ich hatte das extra in den Installer mit eingebaut!

Ja danke also nun kommt erstmal kein fehler mehr.
Hab in der DB
PHP Code:
_yes_;_yes_;1;1;1;1;1;1;1;1;_no_;_no_ 
eingegeben. Dann unter Tarife noch ein Fehler gehabt aber nach Tarif neu speichern war alles ok. Denke hatte nur 2-3 x die 1 gefehlt.
Werde aber noch weitere Sachen testen. Hoffe es geht.
Vielen Dank erstmal.
(This post was last modified: 05-10-2010 04:02 AM by enrico73.)
05-10-2010 04:01 AM
Find all posts by this user Quote this message in a reply
Proyx Offline


Posts: 1
Joined: May 2010
Reputation: 0
Post: #636
RE: ispCP Software Installer -> NEW VERSION RC2 Realese
Ok habe diesen Fehler auch Wink Naja ich versuche ihn jetzt zu beheben
Fehler behoben durch das Löschen aller Tarife
(This post was last modified: 05-13-2010 12:55 AM by Proyx.)
05-13-2010 12:42 AM
Find all posts by this user Quote this message in a reply
enrico73 Offline
Junior Member
*
Beta Team

Posts: 18
Joined: Mar 2010
Reputation: 0
Post: #637
RE: ispCP Software Installer -> NEW VERSION RC2 Realese
Naja löschen aller Tarife ist nicht so schlau. Musst ja dann alle neu machen. Naja muss jeder selbst wissen. ;o)
05-13-2010 07:05 PM
Find all posts by this user Quote this message in a reply
Templarios Offline


Posts: 1
Joined: Jun 2010
Reputation: 0
Post: #638
RE: ispCP Software Installer -> NEW VERSION RC2 Realese
Hallo zusammen
hab dem Installer installiert und läuft auch ohne probleme ;-)

nur wo finde ich jetzt die packete dafür? zb Joomal usw?

LG
Templarios
06-14-2010 12:06 AM
Find all posts by this user Quote this message in a reply
ZooL Offline
Moderator
*****
Moderators

Posts: 3,429
Joined: Jan 2007
Reputation: 79
Post: #639
RE: ispCP Software Installer -> NEW VERSION RC2 Realese
(06-14-2010 12:06 AM)Templarios Wrote:  Hallo zusammen
hab dem Installer installiert und läuft auch ohne probleme ;-)

nur wo finde ich jetzt die packete dafür? zb Joomal usw?

LG
Templarios

http://addons.isp-control.net/unofficial..._packages/


bitte...


mfg
06-14-2010 01:51 AM
Visit this user's website Find all posts by this user Quote this message in a reply
menki Offline
Member
***

Posts: 643
Joined: May 2008
Reputation: 0
Post: #640
RE: ispCP Software Installer -> NEW VERSION RC2 Realese
hallo leute

gibt es auch ein typo3 package irgendwo? sehe unter addons kein typo3 paket.

grüße
MENKI
06-15-2010 09:19 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)