er legt im "saasdata" eine saas.html ab. Die wird täglich aktualisiert. Beim Aufruf des APW wird das gecheckt.
plesk_session = $sess; $this->plesk_domain = $dom; if(is_array($db)){ $this->plesk_database_host = $db[0]; $this->plesk_database_name = $db[1]; $this->plesk_database_user = $db[2]; $this->plesk_database_pass = $db[3]; } } function openDatabase(){ $this->plesk_db_conn = @mysql_connect($this->plesk_database_host,$this->plesk_database_user,$this->plesk_database_pass) or die ("No connection."); mysql_select_db($this->plesk_database_name) or die("No database selected."); } function closeDatabase(){ @mysql_close($this->plesk_db_conn); } function setPleskSkin(){ $sql = "SELECT * from misc where param='admin_skin_id'"; $ret = mysql_query($sql); if (!$ret) $skin_id=8; else if ($row_db = mysql_fetch_array($ret)) $skin_id=$row_db["val"]; $sql = "SELECT * from Skins where id='$skin_id'"; $ret = mysql_query($sql); if (!$ret) $psa_skin = "winxp.new.compact"; else if ($row_db = mysql_fetch_array($ret)) $this->plesk_skin = $row_db["place"]; } function setPleskAllowed(){ if($this->plesk_session->chkLevel(IS_ADMIN)){ $this->plesk_allowed = true; return; } if($this->plesk_session->_login == $this->plesk_domain) { $this->plesk_allowed = true; return; } $r = mysql_query("select a.name from domains as a, clients as b where a.cl_id = b.id and b.login ='".$this->plesk_session->_login."' and a.name = '".$this->plesk_domain."'"); if(mysql_num_rows($r)>0){ $this->plesk_allowed = true; return; } } function getPleskLogin(){ return $this->plesk_session->_login; } function getPleskAllowed(){ return $this->plesk_allowed; } function getPleskSkin(){ return $this->plesk_skin; } function setOnlyAdm($var){ $this->plesk_only_adm=$var; } function getOnlyAdm(){ return $this->plesk_only_adm; } } ?>
Wichtig wäre noch zu sagen, das ich versucht habe den APW "intelligent" zu bauen. Wenn bei der entsprechenden Domain unter "Domain-Benutzer->Webapplikationsverwaltung" der Haken nicht gesetzt ist, gibts für den User schonmal keinen Zugang zu APW.
hi habe dein tool erfolgreich installiert ist sehr sehr cool kompliment für die arbeit! allerdings habe ich das problem wenn ich aus der liste der APPSTANDART.com Produkte eines zum download auswähle das nachher in der liste zwei produkte gelistet werden jedoch eines ohne namen und eines mit "," als name da stimmt irgendwas nicht oder? kann mir da einer helfen?
als zweites würde ich gerne wissen wo ich die "richtlinien" für meine eigenen pakete finde? wie sage ich welche verzeichnisse nach der installation CHMOD777 haben müssen etc ?
vielen dank schonmal gruss timo
plesk_session = $sess; $this->plesk_domain = $dom; if(is_array($db)){ $this->plesk_database_host = $db[0]; $this->plesk_database_name = $db[1]; $this->plesk_database_user = $db[2]; $this->plesk_database_pass = $db[3]; } } function openDatabase(){ $this->plesk_db_conn = @mysql_connect($this->plesk_database_host,$this->plesk_database_user,$this->plesk_database_pass) or die ("No connection."); mysql_select_db($this->plesk_database_name) or die("No database selected."); } function closeDatabase(){ @mysql_close($this->plesk_db_conn); } function setPleskSkin(){ $sql = "SELECT * from misc where param='admin_skin_id'"; $ret = mysql_query($sql); if (!$ret) $skin_id=8; else if ($row_db = mysql_fetch_array($ret)) $skin_id=$row_db["val"]; $sql = "SELECT * from Skins where id='$skin_id'"; $ret = mysql_query($sql); if (!$ret) $psa_skin = "winxp.new.compact"; else if ($row_db = mysql_fetch_array($ret)) $this->plesk_skin = $row_db["place"]; } function setPleskAllowed(){ if($this->plesk_session->chkLevel(IS_ADMIN)){ $this->plesk_allowed = true; return; } if($this->plesk_session->_login == $this->plesk_domain) { $this->plesk_allowed = true; return; } $r = mysql_query("select a.name from domains as a, clients as b where a.cl_id = b.id and b.login ='".$this->plesk_session->_login."' and a.name = '".$this->plesk_domain."'"); if(mysql_num_rows($r)>0){ $this->plesk_allowed = true; return; } } function getPleskLogin(){ return $this->plesk_session->_login; } function getPleskAllowed(){ return $this->plesk_allowed; } function getPleskSkin(){ return $this->plesk_skin; } function setOnlyAdm($var){ $this->plesk_only_adm=$var; } function getOnlyAdm(){ return $this->plesk_only_adm; } } ?>
We use essential cookies to make this site work, and optional cookies to enhance your experience.