Changes in / [9670dd0:b4abfab]
- Location:
- npl
- Files:
-
- 1 added
- 3 deleted
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
npl/internetserver/openvpn/openvpn.build
r9670dd0 rb4abfab 1 652 81 6527 -
npl/internetserver/openvpn/openvpn.md5
r9670dd0 rb4abfab 1 9 71d57e29b78b4b902eb2f4aae2f05a7 ./openvpn-2.4.6.tar.gz2 198caf9d8889901c49a3286a6cdb210c./openvpn_dev.pkg3 d420e8e8094a8888afa02202d9dcef80./openvpn.pkg1 9fe8ad5ac2f5f5b8feb7828a8edd1aec ./openvpn-2.3.18.tar.gz 2 af2b55ef539039c7abc0bb9c6602d565 ./openvpn_dev.pkg 3 3224fc56ba75c502947bf48e8752982d ./openvpn.pkg 4 4 3a5786293ac155e67653e52e9f428df1 ./openvpn.SlackBuild 5 8a16898e10c967017ee728d05d47a382./openvpn.SlackBuild.log.gz5 563195c2aad60e1f29fce0fed417816c ./openvpn.SlackBuild.log.gz -
npl/internetserver/openvpn/openvpn.version
r9670dd0 rb4abfab 1 2. 4.61 2.3.18 -
npl/internetserver/openvpn/openvpn_dev.build
r9670dd0 rb4abfab 1 652 81 6527 -
npl/internetserver/openvpn/openvpn_dev.version
r9670dd0 rb4abfab 1 2. 4.61 2.3.18 -
npl/syn3/webportal/src/index.php
r9670dd0 rb4abfab 1 1 <? 2 /** Syn-3 dynamic web portal 2 /** Syn-3 dynamic web portal 3 3 * 4 * (C) 2007 -2018DatuX / Syn-34 * (C) 2007 DatuX / Syn-3 5 5 */ 6 6 ?> … … 22 22 </div> 23 23 24 25 24 <div id='content' style='padding-top:25'> 26 25 … … 40 39 continue; 41 40 42 41 43 42 echo "<tr >"; 44 43 45 44 //logo met link, iedere webapp heeft een webportal.png. 46 echo "<td style='vertical-align: middle; text-align: center; background:white'>"; 45 echo "<td style='vertical-align:middle'>"; 46 echo "<br>"; 47 47 echo "<a href='$webapp'>"; 48 48 echo "<image src='$img'>"; 49 49 50 50 //omschrijving, staat voor iedere webapp in webportal.desc 51 echo "<td style='vertical-align:middle'>"; 52 echo "<a href='$webapp' style='font-size: 150%;'>"; 51 echo "<td style='font-size: 150%;vertical-align:middle'>"; 53 52 $desc=file_get_contents("$webapp/webportal.desc"); 54 53 if ($desc) … … 56 55 else 57 56 echo $webapp; 58 59 // //syn3 pijl met link60 //echo "<td style='vertical-align:middle'>";61 //echo "<a href='$webapp'>";62 //echo "<image src='img/stat.png'>";63 //echo "</a>";64 65 57 58 //syn3 pijl met link 59 echo "<td style='vertical-align:middle'>"; 60 echo "<a href='$webapp'>"; 61 echo "<image src='img/stat.png'>"; 62 echo "</a>"; 63 64 66 65 echo "</tr>"; 67 66 } … … 75 74 echo "Klik <a href='https://$_SERVER[HTTP_HOST]$_SERVER[SCRIPT_URL]'>hier</a> voor een veilige verbinding."; 76 75 } 77 76 78 77 ?> 79 78 </TD></TR> -
npl/syn3/webportal/upload.sh
r9670dd0 rb4abfab 1 1 [ ! "$1" ] && exit 1 2 2 cd src || exit 1 3 #sshkeyfix $1 || exit 13 sshkeyfix $1 || exit 1 4 4 while true; do 5 MD5=`ls -lcRi --time-style=+%s ../userportal .| md5sum`5 MD5=`ls -lcRi --time-style=+%s | md5sum` 6 6 if [ "$MD5" != "$UPLOADEDMD5" ]; then 7 7 cd .. 8 8 # php updatelang.php 9 9 cd src 10 if rsync --exclude '.*' --delete -e ssh -v -a . $1:/var/www/htdocs/syn3/webportal && 11 rsync --exclude '.*' --delete -e ssh -v -a ../userportal/ $1:/var/www/htdocs/syn3/userportal ;then 10 if rsync --exclude '.*' --delete -e ssh -v -a . $1:/var/www/htdocs/syn3/webportal ;then 12 11 #rsync -e ssh -v -a ../../syn3-scripts/scripts/ $1:/sbin ; 13 ssh $1 "killall httpd"14 12 UPLOADEDMD5="$MD5" 15 13 fi -
npl/syn3/webportal/userportal/index.php
r9670dd0 rb4abfab 1 <? 2 /** Syn-3 dynamic web portal 3 * 4 * (C) 2007-2018 DatuX / Syn-3 5 */ 6 ?> 1 <h1>Nieuw wachtwoord instellen</h1> 2 7 3 <? 8 4 include "ldap.php"; … … 14 10 else 15 11 $error=user_resetpassword($_REQUEST['username'], $_REQUEST['old'], $_REQUEST['new1']); 16 12 17 13 if ($error) 18 $error="<div style='color:red'>$error</div>";14 echo "<div style='color:red'>$error</div>"; 19 15 else 20 16 { 21 // unset cookies, especially zarafa is acting weird if the password is changed. 22 if (isset($_SERVER['HTTP_COOKIE'])) { 23 $cookies = explode(';', $_SERVER['HTTP_COOKIE']); 24 foreach($cookies as $cookie) { 25 $parts = explode('=', $cookie); 26 $name = trim($parts[0]); 27 setcookie($name, '', time()-1000); 28 setcookie($name, '', time()-1000, '/'); 29 } 30 } 31 $ok=1; 17 echo "<div style='color:green'>Ok, uw wachtwoord is gewijzigd</div>"; 18 echo "Klik <a href='/syn3/zarafa'>hier</a> om in te loggen op uw webmail"; 19 exit; 32 20 } 33 21 } … … 37 25 38 26 39 <html>40 <head>41 <META HTTP-EQUIV="content-type" CONTENT="text/html; charset=utf-8">42 <META HTTP-EQUIV="Pragma" CONTENT="no-cache">43 <META HTTP-EQUIV="Expires" CONTENT="-1">44 <link REL="SHORTCUT ICON" HREF="<? echo "http://$_SERVER[HTTP_HOST]/syn3/webportal/img/favicon.ico"; ?>">45 <link href="../webportal/main.css?ver=4.1" type="text/css" rel="stylesheet">46 <title><?System("hostname -f");?> - Wachtwoord wijzigen</title>47 </head>48 <body>49 27 50 <div id='logo'> 51 <a href='http://www.syn-3.eu'> 52 <img src='../webportal/img/Banner_SYN3_Portal.png'> 53 </a> 54 </div> 28 <form action='index.php' method='post'> 29 Usernaam: <input type='text' name='username' value='<?=$_REQUEST['username']?>'> 30 31 <p> 32 33 Oud password: <input type='password' name='old' value='<?=$_REQUEST['old']?>'> 55 34 56 <div id='content' style='padding-top:10em; text-align:center'>35 <p> 57 36 58 <h1>Nieuw wachtwoord instellen</h1>37 Nieuw password: <input type='password' name='new1' value=''> 59 38 60 <?=$error ?>39 <p> 61 40 62 <? if ($ok) { ?> 63 64 <div style='color:green'>Ok, uw wachtwoord is gewijzigd</div> 65 <p>Klik <a href='/'>hier</a> om verder te gaan. 66 67 <? } else { ?> 68 69 <form action='index.php' method='post' style='display: inline-block'> 70 <table> 71 <tr> 72 <td>Usernaam: 73 <td><input autofocus type='text' name='username' value='<?=$_REQUEST['username']?>'> 74 <tr> 75 <td>Oud password: 76 <td><input type='password' name='old' value='<?=$_REQUEST['old']?>'> 77 <tr> 78 <td>Nieuw password: 79 <td><input type='password' name='new1' value=''> 80 <tr> 81 <td>Nieuw password (nogmaals): 82 <td><input type='password' name='new2' value=''> 83 </table> 84 85 86 <p> 87 88 <input type='submit' value='Opslaan'> 89 </form> 90 <? } ?> 91 92 </div> 93 </body> 94 </html> 41 Nieuw password (nogmaals): <input type='password' name='new2' value=''> 42 43 44 <p> 45 46 <input type='submit' value='Opslaan'> 47 </form> -
npl/syn3/webportal/userportal/ldap.php
r9670dd0 rb4abfab 1 1 <? 2 /* 2 /* 3 3 (C) 2004-2013 DatuX - info@datux.nl 4 4 … … 23 23 if (!$ldap_conn) 24 24 return (ldap_error($ldap_conn)); 25 25 26 26 if (strlen($new)<5) 27 27 return ("Nieuw wachtwoord mag niet korter zijn dan 5 tekens."); 28 28 29 29 ldap_set_option($ldap_conn, LDAP_OPT_PROTOCOL_VERSION, 3); 30 30 … … 32 32 33 33 $user_entries=ldap_get_entries($ldap_conn, $result); 34 34 35 35 // echo "<pre>";print_r($user_entries); 36 36 37 37 38 //if ($user_entries['count']!=1)39 //return ("U heeft een ongeldige gebruikersnaam ingegeven");40 38 if ($user_entries['count']!=1) 39 return ("U heeft een ongeldige gebruikersnaam ingegeven"); 40 41 41 $dn=$user_entries[0]['dn']; 42 42 43 43 if (!ldap_bind($ldap_conn, $dn, $old)) 44 44 { 45 45 return ("U heeft uw oude wachtwoord niet goed ingegeven: ".ldap_error($ldap_conn)); 46 46 } 47 48 47 48 49 49 if (!ldap_mod_replace($ldap_conn, $dn, array( 50 50 "userPassword" => "{SHA}".base64_encode(pack("H*", sha1( $new ))) … … 53 53 return ("Password wijzigen is mislukt: ".ldap_error($ldap_conn)); 54 54 } 55 56 55 56 57 57 } 58 58 -
npl/syn3/webportal/webportal.SlackBuild
r9670dd0 rb4abfab 5 5 ##################################### Build dependency info: 6 6 7 #Strict build-dependencies. 7 #Strict build-dependencies. 8 8 #Only use when really neccesary, this will rebuild our package if the dependencie has changed: 9 9 ##DEP:linux … … 28 28 ARCH=noarch 29 29 30 # files erin30 #trap files erin 31 31 mkdir -p /tmp/pkg/var/www/htdocs/syn3/webportal || exit 1 32 32 cp -a src/* /tmp/pkg/var/www/htdocs/syn3/webportal || exit 1 33 34 mkdir -p /tmp/pkg/var/www/htdocs/syn3/userportal || exit 135 cp -a userportal/* /tmp/pkg/var/www/htdocs/syn3/userportal || exit 136 33 37 34 mkdir -p /tmp/pkg/etc/postinst.d || exit 1 … … 45 42 #make main package 46 43 syn3_makepkg /tmp/pkg $NAME $VER $ARCH || exit 1 44 45 -
npl/syn3/webportal/webportal.build
r9670dd0 rb4abfab 1 512 61 5124 -
npl/syn3/webportal/webportal.md5
r9670dd0 rb4abfab 8 8 c9a88e87ef4b242a41c3909c1599cc5a ./src/img/tr-bg.gif 9 9 da822aee1a92e293e231bba79c7fea6e ./src/img/user_bg.gif 10 2edf9c890e4d3febe7533399d6084a4d ./src/index.php10 f4a0b3d4d568f9a6e7a2f70511f91c9d ./src/index.php 11 11 bc451aed5c27aafe8c98d17b56235d58 ./src/main.css 12 bf09fa371345d2aa30d7aa87be834473 ./upload.sh 13 7f45f0bb430ee5d7071c5791e6c032a4 ./userportal/index.php 14 3377cb00324d0117c6d0ca69717ac2f1 ./userportal/ldap.php 15 92cf074cee59c2a1e41fdf9ebdcd64b0 ./userportal/webportal.desc 16 b89ad74b3201219efbf12a49c9774d7d ./userportal/webportal.png 17 481f7ea97bba6cf95d18d275b955b1ab ./webportal.pkg 18 dbc09d3ef3c391c169787fa2b445e470 ./webportal.SlackBuild 19 b08ece7c6ad33d69e99a083a34ee75f9 ./webportal.SlackBuild.log.gz 12 0dab2532142ee8a60fd2b91cd526da09 ./upload.sh 13 643bdb7030b919c48676045d1b8f0d4b ./webportal.SlackBuild 14 cdffc5ce8a276bef238e7831ebf39316 ./webportal.SlackBuild.log.gz 15 c8639b4c582528a04a2777bbc2ec90aa ./webportal.pkg
Note: See TracChangeset
for help on using the changeset viewer.