Changes in / [9670dd0:b4abfab]


Ignore:
Location:
npl
Files:
1 added
3 deleted
17 edited

Legend:

Unmodified
Added
Removed
  • npl/internetserver/openvpn/openvpn.build

    r9670dd0 rb4abfab  
    1 6528
     16527
  • npl/internetserver/openvpn/openvpn.md5

    r9670dd0 rb4abfab  
    1 971d57e29b78b4b902eb2f4aae2f05a7  ./openvpn-2.4.6.tar.gz
    2 198caf9d8889901c49a3286a6cdb210c  ./openvpn_dev.pkg
    3 d420e8e8094a8888afa02202d9dcef80  ./openvpn.pkg
     19fe8ad5ac2f5f5b8feb7828a8edd1aec  ./openvpn-2.3.18.tar.gz
     2af2b55ef539039c7abc0bb9c6602d565  ./openvpn_dev.pkg
     33224fc56ba75c502947bf48e8752982d  ./openvpn.pkg
    443a5786293ac155e67653e52e9f428df1  ./openvpn.SlackBuild
    5 8a16898e10c967017ee728d05d47a382  ./openvpn.SlackBuild.log.gz
     5563195c2aad60e1f29fce0fed417816c  ./openvpn.SlackBuild.log.gz
  • npl/internetserver/openvpn/openvpn.version

    r9670dd0 rb4abfab  
    1 2.4.6
     12.3.18
  • npl/internetserver/openvpn/openvpn_dev.build

    r9670dd0 rb4abfab  
    1 6528
     16527
  • npl/internetserver/openvpn/openvpn_dev.version

    r9670dd0 rb4abfab  
    1 2.4.6
     12.3.18
  • npl/syn3/webportal/src/index.php

    r9670dd0 rb4abfab  
    11<?
    2 /** Syn-3 dynamic web portal
     2/** Syn-3 dynamic web portal 
    33 *
    4  * (C) 2007-2018 DatuX / Syn-3
     4 * (C) 2007 DatuX / Syn-3
    55 */
    66?>
     
    2222</div>
    2323
    24 
    2524<div id='content' style='padding-top:25'>
    2625
     
    4039                                                continue;
    4140
    42 
     41                                       
    4342                                        echo "<tr >";
    44 
     43                                       
    4544                                        //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>";
    4747                                        echo "<a href='$webapp'>";
    4848                                        echo "<image src='$img'>";
    49 
     49                                       
    5050                                        //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'>";
    5352                                        $desc=file_get_contents("$webapp/webportal.desc");
    5453                                        if ($desc)
     
    5655                                        else
    5756                                                echo $webapp;
    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 
     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                                       
    6665                                        echo "</tr>";
    6766                                }
     
    7574                echo "Klik <a href='https://$_SERVER[HTTP_HOST]$_SERVER[SCRIPT_URL]'>hier</a> voor een veilige verbinding.";
    7675        }
    77 
     76       
    7877?>
    7978        </TD></TR>
  • npl/syn3/webportal/upload.sh

    r9670dd0 rb4abfab  
    11[ ! "$1" ] && exit 1
    22cd src || exit 1
    3 #sshkeyfix $1 || exit 1
     3sshkeyfix $1 || exit 1
    44while true; do
    5     MD5=`ls -lcRi --time-style=+%s ../userportal .| md5sum`
     5    MD5=`ls -lcRi --time-style=+%s | md5sum`
    66    if [ "$MD5" != "$UPLOADEDMD5" ]; then
    77         cd ..
    88#        php updatelang.php
    99         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
    1211         #rsync -e ssh -v -a ../../syn3-scripts/scripts/ $1:/sbin ;
    13                 ssh $1 "killall httpd"
    1412                UPLOADEDMD5="$MD5"
    1513         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
    73<?
    84include "ldap.php";
     
    1410        else
    1511                $error=user_resetpassword($_REQUEST['username'], $_REQUEST['old'], $_REQUEST['new1']);
    16 
     12               
    1713        if ($error)
    18                 $error="<div style='color:red'>$error</div>";
     14                echo "<div style='color:red'>$error</div>";
    1915        else
    2016        {
    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;   
    3220        }
    3321}
     
    3725
    3826
    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>
    4927
    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']?>'>
    5534
    56                 <div id='content' style='padding-top:10em; text-align:center' >
     35    <p>
    5736
    58                         <h1>Nieuw wachtwoord instellen</h1>
     37    Nieuw password: <input type='password' name='new1'  value=''>
    5938
    60                         <?=$error ?>
     39    <p>
    6140
    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  
    11<?
    2 /*
     2/* 
    33(C) 2004-2013 DatuX - info@datux.nl
    44
     
    2323        if (!$ldap_conn)
    2424                return (ldap_error($ldap_conn));
    25 
     25               
    2626        if (strlen($new)<5)
    2727                return ("Nieuw wachtwoord mag niet korter zijn dan 5 tekens.");
    28 
     28               
    2929        ldap_set_option($ldap_conn, LDAP_OPT_PROTOCOL_VERSION, 3);
    3030
     
    3232
    3333        $user_entries=ldap_get_entries($ldap_conn, $result);
    34 
     34       
    3535//      echo "<pre>";print_r($user_entries);
    3636
    3737
    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       
    4141        $dn=$user_entries[0]['dn'];
    42 
     42   
    4343        if (!ldap_bind($ldap_conn, $dn, $old))
    4444        {
    4545                return ("U heeft uw oude wachtwoord niet goed ingegeven: ".ldap_error($ldap_conn));
    4646        }
    47 
    48 
     47       
     48       
    4949        if (!ldap_mod_replace($ldap_conn, $dn, array(
    5050                "userPassword" => "{SHA}".base64_encode(pack("H*", sha1( $new )))
     
    5353                return ("Password wijzigen is mislukt: ".ldap_error($ldap_conn));
    5454        }
    55 
    56 
     55       
     56       
    5757}
    5858
  • npl/syn3/webportal/webportal.SlackBuild

    r9670dd0 rb4abfab  
    55##################################### Build dependency info:
    66
    7 #Strict build-dependencies.
     7#Strict build-dependencies. 
    88#Only use when really neccesary, this will rebuild our package if the dependencie has changed:
    99##DEP:linux
     
    2828ARCH=noarch
    2929
    30 #files erin
     30#trap files erin
    3131mkdir -p /tmp/pkg/var/www/htdocs/syn3/webportal || exit 1
    3232cp -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
    3633
    3734mkdir -p /tmp/pkg/etc/postinst.d || exit 1
     
    4542#make main package
    4643syn3_makepkg /tmp/pkg $NAME $VER $ARCH || exit 1
     44
     45
  • npl/syn3/webportal/webportal.build

    r9670dd0 rb4abfab  
    1 5126
     15124
  • npl/syn3/webportal/webportal.md5

    r9670dd0 rb4abfab  
    88c9a88e87ef4b242a41c3909c1599cc5a  ./src/img/tr-bg.gif
    99da822aee1a92e293e231bba79c7fea6e  ./src/img/user_bg.gif
    10 2edf9c890e4d3febe7533399d6084a4d  ./src/index.php
     10f4a0b3d4d568f9a6e7a2f70511f91c9d  ./src/index.php
    1111bc451aed5c27aafe8c98d17b56235d58  ./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
     120dab2532142ee8a60fd2b91cd526da09  ./upload.sh
     13643bdb7030b919c48676045d1b8f0d4b  ./webportal.SlackBuild
     14cdffc5ce8a276bef238e7831ebf39316  ./webportal.SlackBuild.log.gz
     15c8639b4c582528a04a2777bbc2ec90aa  ./webportal.pkg
Note: See TracChangeset for help on using the changeset viewer.