Changes in / [b4abfab:9670dd0]
- Location:
- npl
- Files:
-
- 3 added
- 1 deleted
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
npl/internetserver/openvpn/openvpn.build
rb4abfab r9670dd0 1 652 71 6528 -
npl/internetserver/openvpn/openvpn.md5
rb4abfab r9670dd0 1 9 fe8ad5ac2f5f5b8feb7828a8edd1aec ./openvpn-2.3.18.tar.gz2 af2b55ef539039c7abc0bb9c6602d565./openvpn_dev.pkg3 3224fc56ba75c502947bf48e8752982d./openvpn.pkg1 971d57e29b78b4b902eb2f4aae2f05a7 ./openvpn-2.4.6.tar.gz 2 198caf9d8889901c49a3286a6cdb210c ./openvpn_dev.pkg 3 d420e8e8094a8888afa02202d9dcef80 ./openvpn.pkg 4 4 3a5786293ac155e67653e52e9f428df1 ./openvpn.SlackBuild 5 563195c2aad60e1f29fce0fed417816c./openvpn.SlackBuild.log.gz5 8a16898e10c967017ee728d05d47a382 ./openvpn.SlackBuild.log.gz -
npl/internetserver/openvpn/openvpn.version
rb4abfab r9670dd0 1 2. 3.181 2.4.6 -
npl/internetserver/openvpn/openvpn_dev.build
rb4abfab r9670dd0 1 652 71 6528 -
npl/internetserver/openvpn/openvpn_dev.version
rb4abfab r9670dd0 1 2. 3.181 2.4.6 -
npl/syn3/webportal/src/index.php
rb4abfab r9670dd0 1 1 <? 2 /** Syn-3 dynamic web portal 2 /** Syn-3 dynamic web portal 3 3 * 4 * (C) 2007 DatuX / Syn-34 * (C) 2007-2018 DatuX / Syn-3 5 5 */ 6 6 ?> … … 22 22 </div> 23 23 24 24 25 <div id='content' style='padding-top:25'> 25 26 … … 39 40 continue; 40 41 41 42 42 43 echo "<tr >"; 43 44 44 45 //logo met link, iedere webapp heeft een webportal.png. 45 echo "<td style='vertical-align:middle'>"; 46 echo "<br>"; 46 echo "<td style='vertical-align: middle; text-align: center; background:white'>"; 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='font-size: 150%;vertical-align:middle'>"; 51 echo "<td style='vertical-align:middle'>"; 52 echo "<a href='$webapp' style='font-size: 150%;'>"; 52 53 $desc=file_get_contents("$webapp/webportal.desc"); 53 54 if ($desc) … … 55 56 else 56 57 echo $webapp; 57 58 // syn3 pijl met link59 echo "<td style='vertical-align:middle'>";60 echo "<a href='$webapp'>";61 echo "<image src='img/stat.png'>";62 echo "</a>";63 64 58 59 // //syn3 pijl met link 60 // echo "<td style='vertical-align:middle'>"; 61 // echo "<a href='$webapp'>"; 62 // echo "<image src='img/stat.png'>"; 63 // echo "</a>"; 64 65 65 66 echo "</tr>"; 66 67 } … … 74 75 echo "Klik <a href='https://$_SERVER[HTTP_HOST]$_SERVER[SCRIPT_URL]'>hier</a> voor een veilige verbinding."; 75 76 } 76 77 77 78 ?> 78 79 </TD></TR> -
npl/syn3/webportal/upload.sh
rb4abfab r9670dd0 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 | md5sum`5 MD5=`ls -lcRi --time-style=+%s ../userportal .| 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 ;then 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 11 12 #rsync -e ssh -v -a ../../syn3-scripts/scripts/ $1:/sbin ; 13 ssh $1 "killall httpd" 12 14 UPLOADEDMD5="$MD5" 13 15 fi -
npl/syn3/webportal/userportal/index.php
rb4abfab r9670dd0 1 <h1>Nieuw wachtwoord instellen</h1> 2 1 <? 2 /** Syn-3 dynamic web portal 3 * 4 * (C) 2007-2018 DatuX / Syn-3 5 */ 6 ?> 3 7 <? 4 8 include "ldap.php"; … … 10 14 else 11 15 $error=user_resetpassword($_REQUEST['username'], $_REQUEST['old'], $_REQUEST['new1']); 12 16 13 17 if ($error) 14 echo"<div style='color:red'>$error</div>";18 $error="<div style='color:red'>$error</div>"; 15 19 else 16 20 { 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; 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; 20 32 } 21 33 } … … 25 37 26 38 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> 27 49 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']?>'> 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> 34 55 35 <p>56 <div id='content' style='padding-top:10em; text-align:center' > 36 57 37 Nieuw password: <input type='password' name='new1' value=''>58 <h1>Nieuw wachtwoord instellen</h1> 38 59 39 <p>60 <?=$error ?> 40 61 41 Nieuw password (nogmaals): <input type='password' name='new2' value=''> 42 43 44 <p> 45 46 <input type='submit' value='Opslaan'> 47 </form> 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> -
npl/syn3/webportal/userportal/ldap.php
rb4abfab r9670dd0 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
rb4abfab r9670dd0 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 # trapfiles erin30 #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 1 35 cp -a userportal/* /tmp/pkg/var/www/htdocs/syn3/userportal || exit 1 33 36 34 37 mkdir -p /tmp/pkg/etc/postinst.d || exit 1 … … 42 45 #make main package 43 46 syn3_makepkg /tmp/pkg $NAME $VER $ARCH || exit 1 44 45 -
npl/syn3/webportal/webportal.build
rb4abfab r9670dd0 1 512 41 5126 -
npl/syn3/webportal/webportal.md5
rb4abfab r9670dd0 8 8 c9a88e87ef4b242a41c3909c1599cc5a ./src/img/tr-bg.gif 9 9 da822aee1a92e293e231bba79c7fea6e ./src/img/user_bg.gif 10 f4a0b3d4d568f9a6e7a2f70511f91c9d ./src/index.php10 2edf9c890e4d3febe7533399d6084a4d ./src/index.php 11 11 bc451aed5c27aafe8c98d17b56235d58 ./src/main.css 12 0dab2532142ee8a60fd2b91cd526da09 ./upload.sh 13 643bdb7030b919c48676045d1b8f0d4b ./webportal.SlackBuild 14 cdffc5ce8a276bef238e7831ebf39316 ./webportal.SlackBuild.log.gz 15 c8639b4c582528a04a2777bbc2ec90aa ./webportal.pkg 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
Note: See TracChangeset
for help on using the changeset viewer.